/* V06.2 management pages: one picture-led upper shelf, two detached lower task surfaces. */
.game-ui.gu-illustrated .gu-content[data-page=heroes],.game-ui.gu-illustrated .gu-content[data-page=forge],.game-ui.gu-illustrated .gu-content[data-page=dungeons],.game-ui.gu-illustrated .gu-content[data-page=repair]{inset:0;padding:0;background:none;overflow:visible;pointer-events:none}
.game-ui.gu-illustrated .ms-page{position:absolute;left:5.5%;right:4.5%;top:22%;bottom:9%;display:grid;grid-template-columns:54% 43%;grid-template-rows:42.5% 51%;gap:6.5% 3%;min-width:0;min-height:0;pointer-events:auto}
.game-ui.gu-illustrated .ms-top{grid-column:1/-1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.game-ui.gu-illustrated .ms-left,.game-ui.gu-illustrated .ms-right{display:flex;flex-direction:column;min-height:0;min-width:0;padding:8px 6px;gap:5px;overflow:auto;scrollbar-width:thin;scrollbar-color:#416879 transparent}
.game-ui.gu-illustrated .ms-page>.ms-right{padding-left:15px;padding-right:10px}
.game-ui.gu-illustrated .ms-top>.gu-page-heading{flex:none;height:25px;min-height:25px;align-items:center;margin:0;padding:0 0 3px 0;gap:6px}
.game-ui.gu-illustrated .ms-page .gu-page-heading h2{font-size:14px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px;font-weight:900}
.game-ui.gu-illustrated .ms-page .gu-page-heading p{display:none}.game-ui.gu-illustrated .ms-page .gu-heading-tools{gap:5px;white-space:nowrap}
.game-ui.gu-illustrated .ms-page .gu-heading-tools button,.game-ui.gu-illustrated .ms-page .gu-heading-tools .gu-badge{font-size:9px;padding:1px 5px}
.game-ui.gu-illustrated .ms-page .gu-card{padding:5px 2px;background:transparent;border:0;box-shadow:none;min-height:0}
.game-ui.gu-illustrated .ms-page .gu-card-title{height:auto;min-height:20px;margin:0 0 4px;align-items:center;gap:5px}
.game-ui.gu-illustrated .ms-page h3{font-size:14px;font-weight:900}.game-ui.gu-illustrated .ms-page h4{font-size:11px;font-weight:800}
.game-ui.gu-illustrated .ms-page .gu-note,.game-ui.gu-illustrated .ms-page .gu-help{font-size:10px;line-height:1.5}
.game-ui.gu-illustrated .ms-page .gu-mini-label{font-size:9px;line-height:1.4}
.game-ui.gu-illustrated .ms-page .gu-help{padding:3px 5px;background:#eef0dd88;border-color:#8ba39a;margin:3px 0}
.game-ui.gu-illustrated .ms-page .gu-progress{height:6px;background:#486376;border:1px solid #243f48;border-radius:0}
.game-ui.gu-illustrated .ms-page .gu-progress>i{background:#a9cc71}
.game-ui.gu-illustrated .ms-page .gu-cost{font-size:9px;gap:4px;line-height:1.5;flex-wrap:wrap}.game-ui.gu-illustrated .ms-page .gu-cost-material{font-size:inherit}
.game-ui.gu-illustrated .ms-page .gu-empty{min-height:36px;padding:3px;gap:3px;font-size:10px}
.game-ui.gu-illustrated .ms-page .gu-empty>.gu-icon{height:25px;width:25px}
.game-ui.gu-illustrated .ms-page .gu-empty small{font-size:9px}
.ms-portrait{position:relative;display:block;min-width:0;min-height:0;overflow:hidden}
.ms-portrait-clip{position:absolute;overflow:hidden}
.ms-portrait-clip>img{display:block;position:absolute;max-width:none!important;max-height:none!important;object-fit:fill;pointer-events:none}
.game-ui.gu-illustrated .ms-hero-focus{min-height:48px;max-height:none;flex:1 1 95px}
.game-ui.gu-illustrated .ms-focus-portrait{width:32%;background:transparent}
.ms-hero-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-height:0;padding:3px 2px}
.game-ui.gu-illustrated button.ms-hero-card{display:flex;flex-direction:column;position:relative;min-height:0;gap:0;border:2px solid #20323a;border-radius:2px;background:#d7dcca;padding:0;overflow:hidden;box-shadow:1px 2px #1d354447}
.game-ui.gu-illustrated button.ms-hero-card.selected{border-color:#d7f691;outline:2px solid #739d52;box-shadow:0 0 8px #c7ef9e99}
.game-ui.gu-illustrated button.ms-hero-card>.ms-portrait{width:100%;flex:1;background:#d3ddcd}
.ms-hero-card-name{flex:none;display:flex;align-items:center;justify-content:space-between;gap:3px;padding:3px 6px 0;width:100%;font-size:13px;font-weight:900;background:#203541;color:#fff7e5;white-space:nowrap}
.ms-hero-card-name small{font-size:8px;font-weight:600;color:#ccd8d2}
.ms-hero-card-foot{flex:none;display:flex;align-items:center;gap:4px;position:relative;width:100%;height:21px;padding:1px 6px 7px;background:#203541;color:#f6efdf;font-size:9px;line-height:1}
.ms-hero-card-foot small{font-size:8px;margin-left:auto}.ms-health{height:4px;position:absolute;bottom:3px;left:6px;right:6px;background:#53626c;border:1px solid #121f27}.ms-health i{display:block;height:100%;background:#b2cd77}
.game-ui.gu-illustrated .ms-formation-panel{overflow:visible;gap:4px}
.ms-formation-panel>h3{display:flex;align-items:center;gap:7px;flex:none;height:18px}.ms-formation-panel>h3 small{font-size:10px}
.game-ui.gu-illustrated .ms-formation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;flex:1;min-height:0}
.ms-formation-slot{display:flex;flex-direction:column;min-height:0;border:2px solid #284757;background:#b9ced0;overflow:hidden}
.ms-formation-slot.selected{border-color:#d2ed8d;box-shadow:0 0 4px #6c904e}
.ms-position-name{display:block;flex:none;height:16px;line-height:16px;background:#36596c;color:#f0f0da;font-size:10px;text-align:center;font-weight:800}
.game-ui.gu-illustrated .ms-member{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;border:0;background:none;border-radius:0;gap:0;overflow:hidden}
.ms-member>.ms-portrait{flex:1;width:100%;min-height:0}.ms-member strong{flex:none;height:17px;font-size:11px;line-height:17px;background:#203541;color:#f3f0df;display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-member small{flex:none;height:12px;line-height:12px;font-size:8px;background:#203541;color:#e6e8d7;width:100%;display:block}
.ms-empty-member{margin:auto;font-size:11px;color:#456371}
.game-ui.gu-illustrated .ms-formation-slot select{flex:none;min-width:0;width:100%;height:23px;font-size:9px;padding:2px 1px;border:0;border-radius:0;background:#dbe3d3;color:#233b45}
.ms-team-note{font-size:9px;line-height:14px;height:14px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-preset-bar{display:flex;position:relative;align-items:center;gap:5px;flex:none;height:28px}
.game-ui.gu-illustrated .ms-preset-bar>input{flex:1;min-width:0;font-size:10px;height:26px;padding:3px 5px}
.game-ui.gu-illustrated .ms-preset-bar>button{font-size:10px;height:26px;padding:2px 8px;white-space:nowrap}
.ms-presets{font-size:10px;position:relative;flex:none}.ms-presets>summary{padding:5px 7px;border:1px solid #345764;background:#e1e9cc;cursor:pointer;white-space:nowrap;list-style:none}
.ms-popover{position:absolute;z-index:12;bottom:calc(100% + 6px);right:0;width:290px;max-height:180px;overflow:auto;background:#f0ecd8;border:2px solid #294752;padding:9px;box-shadow:3px 4px #29465555;color:#1d333d;font-size:11px;line-height:1.6}
.ms-preset-list>div{display:flex;gap:5px;margin:4px 0}.game-ui.gu-illustrated .ms-preset-list button{font-size:10px;padding:4px 6px}.ms-preset-list>div>button:first-child{flex:1}
.game-ui.gu-illustrated .ms-hero-detail{overflow:visible;position:relative;gap:4px}
.ms-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:22px;flex:none}.ms-selected-heading h3{font-size:18px!important;line-height:1.2;white-space:nowrap}.ms-selected-heading small{font-size:10px;font-weight:600}.ms-selected-heading>b{font-size:11px}
.ms-hero-focus{display:flex;gap:9px;height:auto;flex:1 1 85px;min-height:40px;max-height:85px}
.ms-focus-portrait{width:32%;height:100%;flex:none;background:#d6decf;border:1px solid #9daa97}
.game-ui.gu-illustrated .ms-hero-totals{display:flex;flex-direction:column;justify-content:center;gap:2px;flex:1;margin:0;min-width:0}
.ms-hero-totals>div{display:flex;align-items:center;gap:4px;min-width:0;font-size:10px;line-height:15px}.ms-hero-totals .skin-icon{width:17px;height:17px}.ms-hero-totals span{flex:1;white-space:nowrap}.ms-hero-totals strong{font-size:13px;white-space:nowrap}.ms-hero-totals>small{font-size:8px;color:#64746b}
.ms-equipped-heading{display:flex;justify-content:space-between;border-bottom:1px solid #7b9091;padding-bottom:2px;font-size:10px;flex:none}.ms-equipped-heading span{font-size:9px;color:#526b6c}
.game-ui.gu-illustrated .ms-gear-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0;flex:none}
.game-ui.gu-illustrated .ms-gear-slots .gu-gear-slot{display:flex;flex-direction:column;align-items:center;position:relative;gap:1px;min-height:0;padding:3px 1px;background:#d5ded9;border:1px solid #415a65;text-align:center;overflow:hidden}
.ms-gear-image{width:100%;height:38px;display:block;position:relative;flex:none}.ms-gear-image>.skin-icon{width:25px;height:25px;opacity:.45;margin-top:6px}
.game-ui.gu-illustrated .ms-gear-slots small{margin:0;font-size:9px;line-height:12px;white-space:nowrap}.ms-gear-slots em{font-size:7px;font-style:normal;line-height:10px;white-space:nowrap;color:#5a6f71}.ms-gear-slots .broken{border-color:#c74639!important}.ms-gear-slots .broken em{color:#c12b24}
.ms-slot-alert{position:absolute;top:0;right:0;z-index:1;background:#e65643;color:#fff4de;font-size:10px;font-style:normal;border-radius:50%;width:13px;height:13px;line-height:13px}
.ms-more-stats{font-size:9px;position:relative;flex:none}.ms-more-stats>summary{cursor:pointer;text-align:right;color:#315e75;line-height:15px}.ms-more-stats .ms-popover{bottom:100%;width:300px}.ms-popover h4{margin-top:4px}.ms-all-stats{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px}.ms-all-stats>span{display:flex;justify-content:space-between;font-size:10px}.ms-hero-lock{font-size:9px!important;line-height:12px}
/* Forge: six illustrated categories above the order controls. */
.game-ui.gu-illustrated .ms-forge .ms-forge-arrange{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;background:none}
.game-ui.gu-illustrated .ms-forge .gu-slot-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0;height:83px;flex:none}
.game-ui.gu-illustrated .ms-forge .gu-slot-choice{display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;padding:4px;border:2px solid #243f49;background:#d8e3d5;border-radius:2px;min-height:0}
.game-ui.gu-illustrated .ms-forge .gu-slot-choice.selected{background:#f1dc91;border-color:#364f38;box-shadow:inset 0 0 0 2px #ffeca6}
.ms-slot-illustration{display:block;position:relative;height:56px;width:100%}.ms-forge .gu-slot-choice>span:last-child{font-size:11px;font-weight:800}
.ms-forge-options{display:grid;grid-template-columns:.75fr 1fr 1.1fr;gap:8px;align-items:center;margin:6px 0 3px;min-height:30px}
.game-ui.gu-illustrated .ms-forge-options .gu-segment{margin:0;display:flex}.game-ui.gu-illustrated .ms-forge-options .gu-segment button{font-size:10px;padding:4px 5px;flex:1;white-space:nowrap}.game-ui.gu-illustrated .ms-forge-options .gu-form-row{margin:0;display:block;font-size:9px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order{margin:0;gap:4px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order label{font-size:9px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order input{width:45px;font-size:11px;padding:3px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order button{font-size:11px;padding:5px 7px;white-space:nowrap}
.game-ui.gu-illustrated .ms-forge .gu-forge-explainer{margin:0!important;font-size:9px;line-height:14px}
.game-ui.gu-illustrated .ms-forge>.ms-left,.game-ui.gu-illustrated .ms-forge>.ms-right{overflow:hidden}
.ms-forge-growth{flex:1.1;overflow:auto}.ms-forge-queue{flex:.9;display:flex;flex-direction:column;overflow:hidden}
.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade{margin:0;padding:4px 0;gap:6px;border-bottom:1px solid #789eac55}.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade p{font-size:9px;margin:1px 0}.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade button{font-size:10px;padding:3px 7px}
.game-ui.gu-illustrated .ms-forge-queue .gu-queue{overflow:auto;min-height:0;flex:1;margin:0}.game-ui.gu-illustrated .ms-forge-queue .gu-queue-item{gap:4px;padding:3px 1px;border-bottom:1px solid #789eac55;font-size:9px}.ms-forge-queue .gu-icon{width:22px!important;height:22px!important}.ms-forge-queue button{padding:2px 5px!important;font-size:9px!important}
.game-ui.gu-illustrated .ms-forge-current{height:100%;display:flex;flex-direction:column;overflow:auto;gap:2px;padding:0}
.ms-forge-picture{height:77px;flex:none;position:relative}.ms-forge-picture img{width:100%;height:100%;object-fit:contain;display:block}.ms-forge-current .gu-forge-icon{display:none}
.game-ui.gu-illustrated .ms-forge-current .gu-forge-current{padding:0;gap:5px;margin:0;flex:none}.ms-forge-current .gu-forge-current h3{font-size:12px!important}.ms-forge-current .gu-forge-current .gu-note{display:none}.game-ui.gu-illustrated .ms-forge-current .gu-form-row{margin:3px 0;font-size:10px;gap:6px}.ms-forge-current input{font-size:10px!important;padding:3px!important;height:24px}.ms-forge-current>p.gu-note{font-size:9px!important}
.game-ui.gu-illustrated .ms-forge-current .gu-craft-peek{margin:3px 0;padding:4px;flex:none}.ms-forge-current .gu-craft-peek-list{max-height:43px;overflow:auto}.ms-forge-current .gu-craft-peek-head{font-size:9px}.ms-forge-current .gu-craft-record{padding:2px}.ms-forge-current .gu-craft-record .gu-item-picture{width:26px;height:26px}
/* Dungeons: four area illustrations, selected-area information and actual-party panel. */
.game-ui.gu-illustrated .ms-dungeons .gu-dungeon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;min-height:0;flex:1}
.game-ui.gu-illustrated .ms-dungeons .gu-dungeon{position:relative;isolation:isolate;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:9px;overflow:hidden;border:2px solid #253b44;border-radius:2px;background:#40606b;color:#fff3d9;box-shadow:none}
.game-ui.gu-illustrated .ms-dungeons .gu-dungeon.selected{border-color:#f2d66f;box-shadow:0 0 0 1px #31494b}
.ms-map-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.ms-dungeons .gu-dungeon:after{content:'';position:absolute;inset:25% 0 0;background:linear-gradient(transparent,#142b37e8);z-index:-1}.ms-dungeons .gu-dungeon:before{display:none}
.game-ui.gu-illustrated .ms-dungeons .gu-dungeon h3{font-size:17px;color:#fff2ce;text-shadow:1px 2px #162733}.game-ui.gu-illustrated .ms-dungeons .gu-dungeon small{font-size:9px;color:#e6ebd5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.ms-dungeons .gu-eyebrow{position:absolute;top:7px;left:8px;color:#fff1ca;font-size:10px}
.game-ui.gu-illustrated .ms-dungeons>.ms-left{overflow:auto}.game-ui.gu-illustrated .ms-dungeons>.ms-right{overflow:auto;gap:4px}
.ms-dungeons .gu-segment{display:flex;gap:3px}.game-ui.gu-illustrated .ms-dungeons .gu-segment button{font-size:10px;padding:4px 5px;flex:1}.ms-dungeons .gu-drop-list{margin:5px 0;gap:4px}.ms-dungeons .gu-drop{font-size:9px;padding:2px 5px;background:#d8e5d5;color:#2a494e;border:1px solid #6a8c91}
.game-ui.gu-illustrated .ms-dungeons .gu-report-panel{flex:none;background:#c6d5d0aa;border:1px solid #6d9098;padding:5px;margin:0}.ms-dungeons .gu-report-summary{font-size:10px;flex-wrap:wrap;gap:4px}.ms-dungeons .gu-report-summary strong{font-size:10px}.ms-dungeons .gu-report-last{font-size:9px}.ms-dungeons .gu-report-panel.expanded{max-height:190px;overflow:auto}.ms-dungeons .gu-report-panel table{font-size:9px;min-width:260px}
.game-ui.gu-illustrated .ms-expedition{padding:0;flex:none}.ms-expedition-image{height:55px;position:relative;overflow:hidden;margin-bottom:3px;border:1px solid #73959b}.ms-expedition-image img{width:100%;height:100%;object-fit:cover}.ms-dungeons.in-mission .ms-expedition-image{height:38px}
.game-ui.gu-illustrated .ms-expedition .gu-battle-party{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:4px 0}.game-ui.gu-illustrated .ms-expedition .gu-battle-member{padding:2px;background:#d1dfd5;border:1px solid #607b81;border-radius:0;min-height:0}.ms-battle-portrait{height:38px;width:100%;background:#cbd6c8}.ms-expedition .gu-battle-member>span:not(.ms-portrait){font-size:9px!important;color:#294650!important}.ms-expedition .gu-battle-member>strong{font-size:10px!important;color:#243e45}.ms-expedition .gu-battle-member>strong small{font-size:8px!important}.ms-expedition .gu-battle-member .gu-progress{height:4px!important}
.game-ui.gu-illustrated .ms-expedition .gu-enemies{gap:3px;max-height:70px;overflow:auto}.game-ui.gu-illustrated .ms-expedition .gu-enemy{position:relative;min-height:34px;padding-left:38px}.ms-enemy-picture{position:absolute;left:0;top:0;width:33px;height:33px;object-fit:contain}.ms-expedition .gu-enemy .row{font-size:9px}.ms-expedition .gu-enemy .row strong{font-size:9px}.ms-expedition .gu-combat-legend{margin:3px 0;font-size:8px}.game-ui.gu-illustrated .ms-expedition .gu-expedition-actions button{font-size:10px;padding:4px}.game-ui.gu-illustrated .ms-expedition [data-action=start]{font-size:13px;padding:5px;margin-top:4px!important}
.ms-supplies-more{font-size:10px;flex:none}.ms-supplies-more>summary{cursor:pointer;background:#e7e9d5;border-bottom:1px solid #8d9f91;padding:3px 4px;color:#33535c}.game-ui.gu-illustrated .ms-supplies-more .gu-expedition-supplies{padding:4px 2px}.ms-supplies-more .gu-card-title{display:none}.ms-supplies-more .gu-checkline{font-size:10px;margin-top:0}.ms-supplies-more input[type=number]{font-size:10px;padding:2px!important;height:23px}.ms-supplies-more .gu-supply{margin:3px 0}.ms-supplies-more h4{font-size:10px}
/* Maintenance: quoted total is fixed above the image-led equipment repair list. */
.ms-repair-controls{display:flex;align-items:center;gap:7px;flex:none;height:30px}
.game-ui.gu-illustrated .ms-repair-controls select{font-size:10px!important;padding:3px!important;max-width:100px}.game-ui.gu-illustrated .ms-repair-controls .gu-form-row{flex:1;margin:0;font-size:9px;gap:5px}.ms-repair-controls .gu-form-row>.gu-note{font-size:9px!important;white-space:nowrap}.game-ui.gu-illustrated .ms-repair-controls>button{font-size:10px;padding:4px 8px;white-space:nowrap;max-width:235px}
.game-ui.gu-illustrated .ms-repair .gu-repair-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:0;flex:1;overflow:auto;margin:3px 0;padding-right:3px;align-content:start}
.game-ui.gu-illustrated .ms-repair .gu-repair-item{display:grid;grid-template-columns:1fr;gap:1px;min-height:0;height:125px;padding:4px 7px;border:1px solid #365461;background:#dce6d6;border-radius:2px;align-items:start;position:relative}
.game-ui.gu-illustrated .ms-repair .gu-repair-item>.gu-item-picture{display:block;position:relative;width:100%;height:52px;background:none;min-height:0;overflow:hidden}
.ms-repair .gu-repair-item h4{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:14px}.ms-repair .gu-repair-item .gu-note{font-size:8px!important;line-height:11px!important}.ms-repair .gu-repair-item .gu-cost{font-size:8px!important;line-height:11px!important}.game-ui.gu-illustrated .ms-repair .gu-repair-item>button:last-child{font-size:9px;padding:1px 6px;line-height:15px;justify-self:end;position:absolute;right:5px;bottom:3px}.ms-repair .gu-repair-item .gu-cost{padding-right:35px}.ms-repair .ms-top>.gu-help{font-size:9px;padding:0;margin:0;background:none;border:0;line-height:12px}
.ms-repair-empty{display:flex;gap:12px;align-items:center;justify-content:center;flex:1;min-height:0;color:#345f62}.ms-repair-empty .skin-icon{width:55px;height:55px}.ms-repair-empty strong{font-size:20px}.ms-repair-empty span{font-size:11px}
.game-ui.gu-illustrated .ms-budget{padding:0}.ms-budget-icon .skin-icon{width:28px;height:28px;margin-right:4px}.ms-budget .gu-form-row{margin:5px 0;font-size:10px}.ms-budget .gu-form-row input{font-size:11px;padding:3px;width:80px}.ms-budget .gu-checkline{margin-top:5px;font-size:10px}.ms-budget .gu-upgrade{margin-top:3px;padding:4px 0}.ms-budget .gu-upgrade button{font-size:10px;padding:3px 7px}.ms-after-repair{margin-top:auto;font-size:10px;padding:4px 5px;background:#c1d7cd;border:1px solid #759e9a;line-height:1.5}
.game-ui.gu-illustrated .ms-stats{flex:none}.game-ui.gu-illustrated .ms-stats .gu-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ms-stats .gu-summary-value{font-size:23px;color:#2c5663}.ms-stats .gu-summary-grid p{font-size:9px}.ms-stats .gu-mini-label{font-size:8px!important}.game-ui.gu-illustrated .ms-journal{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.ms-journal .gu-log{flex:1;min-height:0;overflow:auto;margin:0}.ms-journal .gu-log-event{padding:5px 0;border-bottom:1px solid #c0c7b5;gap:6px}.ms-journal .gu-log-event p{font-size:10px;color:#344c50}.ms-journal .gu-log-time{font-size:8px!important}
@media(max-width:700px),(max-height:550px){
 .game-ui.gu-illustrated .ms-page{left:5.5%;right:4.5%;top:20.8%;bottom:8%}.game-ui.gu-illustrated .ms-left,.game-ui.gu-illustrated .ms-right{padding-top:5px;padding-bottom:5px;gap:3px}
 .game-ui.gu-illustrated .ms-top>.gu-page-heading{height:20px;min-height:20px;padding-left:0}.game-ui.gu-illustrated .ms-page .gu-page-heading h2{font-size:11px;max-width:250px}.game-ui.gu-illustrated .ms-page .gu-heading-tools button,.game-ui.gu-illustrated .ms-page .gu-heading-tools .gu-badge{font-size:8px;padding:0 3px}.game-ui.gu-illustrated .ms-page h3{font-size:11px}.game-ui.gu-illustrated .ms-page h4{font-size:10px}.game-ui.gu-illustrated .ms-page .gu-note,.game-ui.gu-illustrated .ms-page .gu-help{font-size:8px}.game-ui.gu-illustrated .ms-page .gu-card-title{min-height:16px;margin-bottom:2px}
 .ms-hero-roster{gap:7px;padding-top:2px}.ms-hero-card-name{font-size:11px;padding:2px 4px 0}.ms-hero-card-name small{font-size:7px}.ms-hero-card-foot{font-size:8px;height:18px;padding:1px 4px 7px}.ms-hero-card-foot small{font-size:7px}.ms-health{left:4px;right:4px;height:3px}.game-ui.gu-illustrated .ms-formation-grid{gap:4px}.ms-position-name{font-size:8px;height:13px;line-height:13px}.ms-member strong{font-size:9px;height:14px;line-height:14px}.ms-member small{display:none}.game-ui.gu-illustrated .ms-formation-slot select{font-size:8px;height:20px;padding:1px}.ms-formation-panel>h3{height:16px}.ms-team-note{font-size:8px;line-height:12px;height:12px}.ms-preset-bar{height:24px;gap:3px}.game-ui.gu-illustrated .ms-preset-bar>input{font-size:9px;height:23px;padding:2px 3px}.game-ui.gu-illustrated .ms-preset-bar>button{font-size:9px;height:23px;padding:2px 5px}.ms-presets{font-size:8px}.ms-presets>summary{padding:4px}.ms-popover{max-height:145px;width:245px;font-size:9px}.ms-more-stats .ms-popover{width:245px}
 .ms-selected-heading{min-height:18px}.ms-selected-heading h3{font-size:14px!important}.ms-selected-heading small,.ms-selected-heading>b{font-size:9px}.ms-hero-focus{height:auto;flex-basis:61px;max-height:61px;min-height:34px;gap:6px}.ms-hero-totals>div{font-size:8px;line-height:12px;gap:3px}.ms-hero-totals .skin-icon{width:13px;height:13px}.ms-hero-totals strong{font-size:10px}.ms-hero-totals>small{font-size:7px}.ms-equipped-heading{font-size:9px}.ms-equipped-heading span{font-size:8px}.game-ui.gu-illustrated .ms-gear-slots{gap:3px}.game-ui.gu-illustrated .ms-gear-slots .gu-gear-slot{padding:2px 0}.ms-gear-image{height:25px}.ms-gear-image>.skin-icon{height:18px;width:18px;margin-top:3px}.game-ui.gu-illustrated .ms-gear-slots small{margin:0;font-size:7px;line-height:10px}.ms-gear-slots em{font-size:6px;line-height:8px}.ms-hero-lock{font-size:8px!important;line-height:10px}.ms-more-stats>summary{font-size:8px;line-height:12px}
 .game-ui.gu-illustrated .ms-forge .gu-slot-grid{height:57px;gap:4px}.game-ui.gu-illustrated .ms-forge .gu-slot-choice{padding:2px}.ms-slot-illustration{height:35px}.ms-forge .gu-slot-choice>span:last-child{font-size:9px}.ms-forge-options{gap:5px;margin:3px 0 1px;min-height:25px}.game-ui.gu-illustrated .ms-forge-options .gu-segment button{font-size:8px;padding:3px}.game-ui.gu-illustrated .ms-forge-options .gu-form-row,.game-ui.gu-illustrated .ms-forge-options .gu-form-row .gu-note{font-size:8px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order label{font-size:8px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order input{width:33px;font-size:9px;padding:2px}.game-ui.gu-illustrated .ms-forge-options .gu-forge-order button{font-size:9px;padding:4px}.game-ui.gu-illustrated .ms-forge .gu-forge-explainer{font-size:8px;line-height:11px}.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade{padding:2px 0}.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade p{display:none}.ms-forge-picture{height:47px}.game-ui.gu-illustrated .ms-forge-current .gu-craft-peek{padding:2px}.ms-forge-current .gu-craft-peek-list{max-height:26px}.game-ui.gu-illustrated .ms-forge-current .gu-form-row{margin:1px 0;font-size:8px}.ms-forge-current input{height:20px;font-size:9px!important}.game-ui.gu-illustrated .ms-forge-current>p.gu-note{font-size:8px!important}
 .game-ui.gu-illustrated .ms-dungeons .gu-dungeon-grid{gap:6px}.game-ui.gu-illustrated .ms-dungeons .gu-dungeon{padding:6px}.game-ui.gu-illustrated .ms-dungeons .gu-dungeon h3{font-size:12px}.game-ui.gu-illustrated .ms-dungeons .gu-dungeon small{font-size:7px}.game-ui.gu-illustrated .ms-dungeons .gu-segment button{font-size:8px;padding:3px}.ms-expedition-image{height:36px}.ms-dungeons.in-mission .ms-expedition-image{height:25px}.ms-battle-portrait{height:26px}.game-ui.gu-illustrated .ms-expedition .gu-battle-party{gap:3px;margin:2px 0}.ms-expedition .gu-battle-member>span:not(.ms-portrait){font-size:8px!important}.ms-expedition .gu-battle-member>strong{font-size:8px!important}.ms-expedition .gu-battle-member>strong small{font-size:6px!important}.game-ui.gu-illustrated .ms-expedition .gu-enemies{max-height:50px}.game-ui.gu-illustrated .ms-expedition [data-action=start]{font-size:10px;padding:4px}.ms-expedition .gu-combat-legend{font-size:7px}.ms-expedition .gu-stage-summary{font-size:8px;margin-bottom:3px}.game-ui.gu-illustrated .ms-expedition .gu-expedition-actions button{font-size:8px;padding:3px}.ms-supplies-more{font-size:9px}.ms-enemy-picture{height:25px;width:25px}.game-ui.gu-illustrated .ms-expedition .gu-enemy{padding-left:29px;min-height:28px}
 .ms-repair-controls{gap:4px;height:25px}.game-ui.gu-illustrated .ms-repair-controls select{font-size:8px!important;max-width:78px}.game-ui.gu-illustrated .ms-repair-controls .gu-form-row,.ms-repair-controls .gu-form-row>.gu-note{font-size:8px!important}.game-ui.gu-illustrated .ms-repair-controls>button{font-size:8px;max-width:175px;padding:3px 5px}.game-ui.gu-illustrated .ms-repair .gu-repair-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.game-ui.gu-illustrated .ms-repair .gu-repair-item{height:75px;grid-template-columns:45px minmax(0,1fr);padding:4px;gap:3px}.game-ui.gu-illustrated .ms-repair .gu-repair-item>.gu-item-picture{height:50px;width:45px;grid-row:1/3}.ms-repair .gu-repair-item h4{font-size:9px!important}.ms-repair .gu-repair-item .gu-cost{padding:0}.ms-repair .gu-repair-item .gu-note{font-size:7px!important}.game-ui.gu-illustrated .ms-repair .gu-repair-item>button:last-child{font-size:8px;bottom:2px;right:4px;padding:0 5px}.ms-repair .ms-top>.gu-help{font-size:8px;line-height:10px}.ms-budget .gu-form-row{font-size:9px;margin:3px 0}.ms-budget .gu-form-row input{font-size:9px;padding:2px;width:65px}.ms-after-repair{font-size:8px;padding:3px}.ms-stats .gu-summary-value{font-size:18px}.ms-stats .gu-summary-grid p{font-size:8px}.ms-journal .gu-log-event p{font-size:8px}.ms-repair-empty strong{font-size:15px}.ms-repair-empty span{font-size:9px}
}

/* Departure and retreat stay outside the scrolling encounter content. */
.game-ui.gu-illustrated .ms-dungeons>.ms-right{overflow:hidden}
.game-ui.gu-illustrated .ms-dungeons .ms-expedition{flex:1;min-height:0;overflow:auto}
.ms-expedition-footer{flex:none;min-width:0}.game-ui.gu-illustrated .ms-expedition-footer>button{width:100%;font-size:13px;padding:5px;margin:0!important}.game-ui.gu-illustrated .ms-expedition-footer .gu-expedition-actions{display:flex;gap:5px;margin:0}.game-ui.gu-illustrated .ms-expedition-footer .gu-expedition-actions button{flex:1;font-size:10px;padding:4px}.ms-supplies-more[open]{max-height:50%;overflow:auto}
@media(max-width:700px),(max-height:550px){.game-ui.gu-illustrated .ms-expedition-footer>button{font-size:10px;padding:4px}.game-ui.gu-illustrated .ms-expedition-footer .gu-expedition-actions button{font-size:8px;padding:3px}}

/* Reuse the approved hand-inked card and primary-button artwork. */
.game-ui.gu-illustrated button.ms-hero-card{isolation:isolate;border:0;padding:6px;background:none;border-radius:0;box-shadow:none}.game-ui.gu-illustrated button.ms-hero-card.selected{border:0;outline:0;background:none;box-shadow:0 0 5px #c7ef9e88}.ms-hero-card>.skin-card-art{z-index:-1}.game-ui.gu-illustrated button.ms-art-primary{position:relative;isolation:isolate;background:transparent;border:0;box-shadow:none}.game-ui.gu-illustrated button.ms-art-primary:hover:not(:disabled){background:transparent;filter:brightness(1.08)}.ms-primary-art{z-index:-1}.ms-primary-label{position:relative;z-index:1;padding:1px 6px;display:inline-block;font-weight:900}

/* V06.3: flexible figure area, explicit metadata rows, and protected action widths. */
.ms-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ms-hero-roster{padding:0 2px;gap:8px}
.ms-hero-card>.ms-portrait{background:transparent!important}
.ms-formation-heading{flex:none;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:23px}
.ms-formation-heading h3{white-space:nowrap;font-size:13px!important}.ms-formation-heading h3 small{font-size:10px}
.ms-formation-tools{display:flex;gap:5px;align-items:center;min-width:0}.game-ui.gu-illustrated .ms-formation-tools .gu-badge{font-size:8px;padding:1px 3px}.game-ui.gu-illustrated .ms-formation-tools button{font-size:9px;padding:2px 5px;white-space:nowrap}
.ms-preset-bar{display:grid;grid-template-columns:minmax(65px,1fr) 85px 88px;gap:6px;height:29px;flex:none}
.game-ui.gu-illustrated .ms-preset-bar>input{width:100%;height:27px;margin:0}.game-ui.gu-illustrated .ms-preset-bar>button{width:100%;min-width:0;height:27px;padding:2px 3px;line-height:20px;white-space:nowrap}
.ms-presets{width:100%;min-width:0}.ms-presets>summary{text-align:center;padding:5px 3px;font-size:9px;line-height:15px}
.ms-primary-label{max-width:100%;white-space:nowrap}.ms-preset-bar .ms-primary-label{padding:0 3px}
.ms-selected-heading,.ms-equipped-heading,.ms-gear-slots,.ms-more-stats,.ms-hero-lock{flex-shrink:0}
.game-ui.gu-illustrated .ms-gear-slots .gu-gear-slot{margin:0}.game-ui.gu-illustrated .ms-gear-slots small{margin:0;line-height:12px}
.ms-hero-lock{padding:0;margin:0;font-size:8px!important}.ms-focus-portrait{height:100%;border:0;background:transparent}
.ms-team-note{max-width:100%;margin:0}
@media(max-width:700px),(max-height:550px){
 .ms-hero-roster{gap:5px}.game-ui.gu-illustrated button.ms-hero-card{padding:4px}.ms-formation-heading{min-height:18px}.ms-formation-heading h3{font-size:10px!important}.ms-formation-heading h3 small{font-size:8px}.ms-formation-tools{gap:3px}.game-ui.gu-illustrated .ms-formation-tools .gu-badge{display:none}.game-ui.gu-illustrated .ms-formation-tools button{font-size:8px;padding:1px 4px}
 .ms-preset-bar{grid-template-columns:minmax(54px,1fr) 72px 72px;gap:4px;height:25px}.game-ui.gu-illustrated .ms-preset-bar>button,.game-ui.gu-illustrated .ms-preset-bar>input{height:24px;font-size:9px}.ms-presets>summary{font-size:8px;padding:4px 2px;line-height:14px}
 .game-ui.gu-illustrated .ms-page>.ms-right{padding-left:11px;padding-right:7px}.game-ui.gu-illustrated .ms-gear-slots small{font-size:7px;line-height:10px}.ms-slot-alert{width:10px;height:10px;line-height:10px;font-size:8px}
}

.game-ui.gu-illustrated .ms-heroes .ms-top{overflow:visible}

/* The figure shares height with two compact statistic rows instead of forcing four rows out of the sheet. */
.game-ui.gu-illustrated .ms-hero-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:4px 6px}
.game-ui.gu-illustrated .ms-hero-totals>div{display:grid;grid-template-columns:17px minmax(0,1fr);grid-template-rows:12px 18px;gap:0 3px;min-width:0;line-height:1}
.game-ui.gu-illustrated .ms-hero-totals>div>.skin-icon{grid-row:1/3;width:17px;height:17px;align-self:center}.game-ui.gu-illustrated .ms-hero-totals>div>span{font-size:9px;line-height:12px}.game-ui.gu-illustrated .ms-hero-totals>div>strong{grid-column:2;font-size:13px;line-height:18px;overflow:hidden;text-overflow:ellipsis}
.game-ui.gu-illustrated .ms-hero-totals>small,.ms-hero-lock{display:none}
.ms-hero-card-name{min-width:0;overflow:hidden}.ms-name-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ms-hero-card-name>small{flex:none}.ms-selected-heading h3{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.ms-selected-heading>b{flex:none}
@media(max-width:700px),(max-height:550px){.game-ui.gu-illustrated .ms-hero-totals{gap:3px 4px}.game-ui.gu-illustrated .ms-hero-totals>div{grid-template-columns:12px minmax(0,1fr);grid-template-rows:9px 12px;gap:0 2px}.game-ui.gu-illustrated .ms-hero-totals>div>.skin-icon{width:12px;height:12px}.game-ui.gu-illustrated .ms-hero-totals>div>span{font-size:7px;line-height:9px}.game-ui.gu-illustrated .ms-hero-totals>div>strong{font-size:10px;line-height:12px}}
/* Workshop and maintenance: reuse the approved illustration frames, keep actions outside lists. */
.game-ui.gu-illustrated .ms-forge .ms-forge-arrange{gap:3px}
.game-ui.gu-illustrated .ms-forge .gu-slot-grid{flex:1;min-height:55px;height:auto;gap:7px;padding:1px}
.game-ui.gu-illustrated .ms-forge .gu-slot-choice{position:relative;isolation:isolate;justify-content:flex-end;overflow:hidden;background:none;border:0;box-shadow:none;padding:5px 6px;gap:0}
.game-ui.gu-illustrated .ms-forge .gu-slot-choice.selected{background:none;border:0;box-shadow:0 0 5px #e8ce7188}
.ms-forge .gu-slot-choice>.skin-card-art{z-index:-1}
.ms-forge .ms-slot-illustration{height:auto;flex:1;min-height:0;width:100%}
.ms-forge .ms-slot-caption{flex:none;width:100%;padding:2px 3px;background:#233d47;color:#fff4da;font-size:12px!important;font-weight:900;text-align:center}
.ms-forge .gu-slot-choice.selected .ms-slot-caption{background:#eacb70;color:#243e42}
.ms-forge .ms-forge-options{flex:none;margin:2px 0 0;min-height:29px;grid-template-columns:.9fr .9fr 1.2fr;gap:8px}
.game-ui.gu-illustrated .ms-forge .ms-forge-options .gu-forge-order button{font-size:12px;min-height:29px;padding:3px 5px}
.game-ui.gu-illustrated .ms-forge .gu-forge-explainer{flex:none;font-size:9px;line-height:13px}
.game-ui.gu-illustrated .ms-forge>.ms-left{overflow:auto}
.game-ui.gu-illustrated .ms-forge>.ms-right{overflow:hidden;gap:4px}
.game-ui.gu-illustrated .ms-forge-current{height:auto;min-height:0;flex:1;overflow:visible;gap:5px}
.ms-forge-focus{display:grid;grid-template-columns:40% minmax(0,1fr);flex:1;min-height:95px;gap:9px;align-items:center}
.ms-forge .ms-forge-picture{height:100%;min-height:90px;max-height:150px;margin:0;align-self:center}
.ms-forge-progress{min-width:0;display:flex;flex-direction:column;gap:4px}
.game-ui.gu-illustrated .ms-forge-progress .gu-forge-current{display:block;background:none;border:0}
.game-ui.gu-illustrated .ms-forge-progress .gu-forge-current h3{font-size:16px!important;margin:0 0 8px}
.game-ui.gu-illustrated .ms-forge-progress .gu-progress{height:11px;box-shadow:1px 1px #233c46}
.ms-forge-progress .gu-mini-label{font-size:10px!important;line-height:17px}
.ms-hammers-left{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin:0;color:#2e5360}
.ms-hammers-left strong{font-size:27px;font-weight:900;line-height:1.2}.ms-hammers-left span{font-size:10px}
.ms-workshop-settings,.ms-workshop-recent,.ms-workshop-growth{flex:none;min-width:0;font-size:10px}
.ms-workshop-settings>summary,.ms-workshop-recent>summary,.ms-workshop-growth>summary{padding:4px 2px;border-top:1px solid #5e8790;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:5px;font-weight:800;color:#305965;line-height:15px}
.ms-workshop-growth>summary span{font-size:9px;font-weight:400}
.ms-workshop-settings[open]{padding-bottom:4px}
.ms-workshop-recent[open],.ms-workshop-growth[open]{max-height:58%;overflow:auto;scrollbar-width:thin}
.game-ui.gu-illustrated .ms-forge-queue{flex:1;min-height:50px;padding:0;gap:2px}
.game-ui.gu-illustrated .ms-forge-queue .gu-card-title{flex:none;margin:0 0 3px;min-height:20px}
.game-ui.gu-illustrated .ms-forge-queue .gu-card-title small{font-size:8px}
.game-ui.gu-illustrated .ms-forge-queue .gu-queue{padding-right:3px;max-height:none}
.game-ui.gu-illustrated .ms-forge-queue .gu-queue-item{padding:4px 0;gap:5px;border-bottom:1px solid #819a9566;background:none;min-height:34px}
.ms-order-picture{width:30px;height:30px;flex:none;position:relative;display:block}
.ms-forge-queue .gu-queue-number{font-size:11px;font-weight:900;color:#68816e}
.ms-forge-queue .grow{min-width:0}.ms-forge-queue strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-ui.gu-illustrated .ms-forge-growth{padding:3px 0;overflow:visible;flex:none}
.ms-forge-growth>.gu-card-title{display:none}
.game-ui.gu-illustrated .ms-forge-growth .gu-upgrade{padding:5px 0;align-items:center;gap:5px}
.ms-upgrade-picture{width:41px;height:39px;position:relative;display:block;flex:none}.ms-upgrade-picture img{width:100%;height:100%;object-fit:contain}
.ms-forge-growth .gu-upgrade>.grow{min-width:0}.ms-forge-growth .gu-upgrade h4{line-height:15px}.ms-forge-growth .gu-upgrade .gu-cost{font-size:9px!important}
.game-ui.gu-illustrated .ms-forge .gu-note.bad{font-size:9px;line-height:13px;margin:0}
/* Repair shelf: large equipment pictures; each quote and action remains part of its own card. */
.game-ui.gu-illustrated .ms-repair-controls{display:grid;grid-template-columns:100px minmax(0,1fr) 154px;gap:8px;height:auto;min-height:31px;flex:none}
.game-ui.gu-illustrated .ms-repair-controls select{width:100%;max-width:none;height:28px;font-size:10px!important}
.game-ui.gu-illustrated .ms-repair-controls .gu-form-row{display:flex;flex-wrap:wrap;gap:2px 6px;line-height:13px;min-width:0}
.game-ui.gu-illustrated .ms-repair-controls .gu-form-row>.gu-note{font-size:9px!important}
.game-ui.gu-illustrated .ms-repair-controls>button{min-width:0;max-width:none;height:29px;padding:2px 8px;font-size:13px;line-height:23px}
.game-ui.gu-illustrated .ms-repair .gu-repair-list{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:146px;gap:7px;align-content:start;flex:1;min-height:0;margin:4px 0 0;padding:1px 3px 2px 1px}
.game-ui.gu-illustrated .ms-repair .gu-repair-item{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 20px 36px;gap:1px 3px;height:146px;padding:5px 7px 7px;background:none;border:0;box-shadow:none;overflow:hidden}
.ms-repair .gu-repair-item>.skin-card-art{z-index:-1}
.game-ui.gu-illustrated .ms-repair .gu-repair-item>.gu-item-picture{grid-column:1/-1;grid-row:1;height:100%;width:100%;min-height:0;overflow:visible;padding:0}
.ms-repair-condition{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;gap:2px;align-self:center;min-width:0}
.ms-repair-condition>i{height:5px;border:1px solid #344c50;background:#536775;display:block;overflow:hidden}
.ms-repair-condition em{height:100%;background:#adc877;display:block}.ms-repair-condition.broken em{background:#d56853}
.ms-repair-condition>span{font-size:8px;color:#2c454a;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-repair-condition.broken>span{color:#923728;font-weight:700}
.ms-repair .gu-repair-item>.grow{grid-column:1;grid-row:3;min-width:0;align-self:center}
.ms-repair .gu-repair-item h4{font-size:10px!important;line-height:14px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-repair .gu-repair-item h4>.gu-badge{display:none}
.ms-repair .gu-repair-item .grow>.gu-note{font-size:8px!important;line-height:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.ms-repair .gu-repair-item .gu-cost{font-size:8px!important;line-height:11px!important;padding:0!important;gap:3px}
.game-ui.gu-illustrated .ms-repair .gu-repair-item>button:last-child{grid-column:2;grid-row:3;align-self:center;position:static;padding:2px 4px;font-size:9px;line-height:16px;border:1px solid #3d5960;background:#c6df9c;color:#243d44;white-space:nowrap}
.game-ui.gu-illustrated .ms-repair .gu-repair-item>button:last-child:disabled{background:#c1c9bd;color:#56676b}
.game-ui.gu-illustrated .ms-repair .ms-repair-guidance{flex:none;min-height:12px;font-size:8px;line-height:12px;margin:1px 0 0;padding:0;background:none;border:0}
.game-ui.gu-illustrated .ms-repair .ms-repair-warning{flex:none;font-size:9px;line-height:12px;margin:1px 0;padding:0}
.ms-repair .ms-repair-empty{justify-content:flex-start;gap:14px;padding:3px 12%;flex:1;min-height:0}
.ms-maintained-picture{position:relative;display:block;width:100px;height:100%;min-height:0;flex:none}
.ms-repair-empty>div{min-width:0}.ms-repair-empty strong{font-size:21px;color:#31595e}.ms-repair-empty p{font-size:11px;line-height:1.5}
/* Budget settings share a quiet tool illustration; the journal uses icons and generous spacing. */
.game-ui.gu-illustrated .ms-repair>.ms-left{overflow:auto;gap:4px}
.game-ui.gu-illustrated .ms-repair>.ms-right{overflow:hidden;gap:5px}
.game-ui.gu-illustrated .ms-budget{flex:1;display:flex;flex-direction:column;min-height:0;overflow:visible}
.ms-budget-body{display:grid;grid-template-columns:25% minmax(0,1fr);gap:9px;flex:1;min-height:0;align-items:center}
.ms-budget-picture{display:block;position:relative;align-self:stretch;min-height:65px}.ms-budget-picture img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}
.ms-budget-fields{min-width:0}.game-ui.gu-illustrated .ms-budget-fields>.gu-note{font-size:9px;line-height:13px;margin:0 0 5px}
.game-ui.gu-illustrated .ms-budget-fields .gu-checkline{font-size:10px;line-height:14px;margin:0 0 4px;gap:5px}
.game-ui.gu-illustrated .ms-budget-fields .gu-form-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;line-height:16px;margin:4px 0;gap:4px}
.game-ui.gu-illustrated .ms-budget-fields .gu-form-row input{width:79px;min-width:0;height:23px;font-size:11px;padding:2px 4px}
.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade{display:flex;justify-content:space-between;align-items:center;gap:3px;margin:5px 0 0;padding:4px 0 0;border-top:1px solid #6f929766}
.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade h4{font-size:10px;line-height:14px}
.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade button{padding:3px 6px;font-size:10px}
.ms-repair .ms-after-repair{flex:none;font-size:9px;line-height:14px;padding:4px 5px;margin:0;border:0;border-top:1px solid #6b8c88;background:none;color:#345e61}
.ms-repair .ms-stats>.gu-card-title{display:none}
.game-ui.gu-illustrated .ms-repair .ms-stats{padding:0 0 4px;border-bottom:1px solid #8da59c}
.game-ui.gu-illustrated .ms-repair .ms-stats .gu-summary-grid{gap:6px}
.ms-repair .gu-summary-grid>div{display:grid;grid-template-columns:23px minmax(0,1fr);gap:0 3px;align-items:center}
.ms-repair .gu-summary-grid .skin-icon{width:23px;height:23px;grid-row:1/3}
.ms-repair .gu-summary-value{font-size:21px;line-height:24px;color:#274c58;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-repair .gu-summary-grid p{font-size:8px;line-height:12px;margin:0;white-space:nowrap}
.ms-repair .ms-stats>.gu-mini-label{font-size:7px!important;line-height:11px;margin:2px 0 0}
.game-ui.gu-illustrated .ms-repair .ms-journal{padding:0;gap:3px}
.ms-repair .ms-journal>.gu-card-title{flex:none;min-height:19px;margin:0}.ms-repair .ms-journal .gu-log{padding-right:4px;overflow:auto;flex:1}
.ms-repair .ms-journal .gu-log-event{padding:6px 0;align-items:flex-start;gap:6px;border-bottom:1px solid #afbaaa66}
.ms-repair .ms-journal .gu-log-event p{font-size:10px;line-height:15px;overflow-wrap:anywhere;margin:0}.ms-repair .ms-journal .gu-log-dot{margin-top:4px;flex:none}
@media(max-width:700px),(max-height:550px){
 .game-ui.gu-illustrated .ms-forge .gu-slot-grid{min-height:43px;gap:4px}.game-ui.gu-illustrated .ms-forge .gu-slot-choice{padding:3px 4px}.ms-forge .ms-slot-caption{font-size:9px!important;line-height:12px;padding:1px}
 .ms-forge .ms-forge-options{grid-template-columns:.9fr .8fr 1.2fr;gap:5px;min-height:25px}.game-ui.gu-illustrated .ms-forge .ms-forge-options .gu-forge-order button{font-size:9px;min-height:24px;padding:2px 3px}.game-ui.gu-illustrated .ms-forge .gu-forge-explainer{font-size:8px;line-height:11px}
 .ms-forge-focus{grid-template-columns:37% minmax(0,1fr);gap:6px;min-height:70px}.ms-forge .ms-forge-picture{min-height:68px;max-height:105px}.game-ui.gu-illustrated .ms-forge-progress .gu-forge-current h3{font-size:12px!important;margin-bottom:4px}.ms-forge-progress .gu-mini-label{font-size:8px!important;line-height:13px}.game-ui.gu-illustrated .ms-forge-progress .gu-progress{height:8px}.ms-hammers-left strong{font-size:21px}.ms-hammers-left span{font-size:8px}
 .ms-workshop-settings>summary,.ms-workshop-recent>summary,.ms-workshop-growth>summary{font-size:9px;line-height:12px;padding:3px 0}.ms-workshop-growth>summary span{font-size:7px}.game-ui.gu-illustrated .ms-forge-queue .gu-queue-item{padding:2px 0;min-height:28px}.game-ui.gu-illustrated .ms-forge-queue .gu-card-title{min-height:16px;margin:0}.ms-forge-queue .gu-card-title small{font-size:7px!important}.ms-order-picture{width:23px;height:23px}.ms-upgrade-picture{width:29px;height:30px}.ms-forge-growth .gu-upgrade h4{font-size:9px!important}
 .game-ui.gu-illustrated .ms-repair-controls{grid-template-columns:82px minmax(0,1fr) 105px;gap:4px;min-height:26px}.game-ui.gu-illustrated .ms-repair-controls select{height:24px;font-size:8px!important}.game-ui.gu-illustrated .ms-repair-controls .gu-form-row>.gu-note{font-size:8px!important}.game-ui.gu-illustrated .ms-repair-controls>button{height:24px;font-size:10px;line-height:20px;padding:1px 4px}
 .game-ui.gu-illustrated .ms-repair .gu-repair-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:81px;gap:4px;margin:2px 0 0}
 .game-ui.gu-illustrated .ms-repair .gu-repair-item{height:81px;grid-template-columns:49px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 18px;gap:2px 4px;padding:5px 7px}
 .game-ui.gu-illustrated .ms-repair .gu-repair-item>.gu-item-picture{grid-column:1;grid-row:1/-1;height:100%;width:100%}.ms-repair .gu-repair-item>.grow{grid-column:2/-1;grid-row:1;align-self:center}.ms-repair .gu-repair-item h4{font-size:9px!important;line-height:13px}.ms-repair .gu-repair-item .grow>.gu-note{font-size:7px!important}.ms-repair .gu-repair-item .gu-cost{font-size:7px!important;line-height:10px!important}.ms-repair-condition{grid-column:2;grid-row:2;gap:1px}.ms-repair-condition>span{font-size:6px;line-height:9px}.ms-repair-condition>i{height:4px}.game-ui.gu-illustrated .ms-repair .gu-repair-item>button:last-child{grid-column:3;grid-row:2;font-size:8px;padding:0 3px;line-height:15px}
 .game-ui.gu-illustrated .ms-repair .ms-repair-guidance{font-size:7px;line-height:10px;min-height:10px}.game-ui.gu-illustrated .ms-repair .ms-repair-warning{font-size:8px;line-height:10px}.ms-repair .ms-repair-empty{padding:2px 6%;gap:8px}.ms-maintained-picture{width:67px}.ms-repair-empty strong{font-size:16px}.ms-repair-empty p{font-size:9px;line-height:13px}
 .ms-budget-body{grid-template-columns:20% minmax(0,1fr);gap:6px}.game-ui.gu-illustrated .ms-budget-fields>.gu-note{font-size:8px;line-height:11px;margin-bottom:3px}.game-ui.gu-illustrated .ms-budget-fields .gu-checkline{font-size:8px;line-height:12px;margin-bottom:2px}.game-ui.gu-illustrated .ms-budget-fields .gu-form-row{font-size:8px;line-height:13px;margin:2px 0}.game-ui.gu-illustrated .ms-budget-fields .gu-form-row input{height:20px;width:65px;font-size:9px}.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade{margin-top:3px;padding-top:2px}.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade h4{font-size:8px}.game-ui.gu-illustrated .ms-budget-fields .gu-upgrade button{font-size:8px;padding:2px 4px}.ms-repair .ms-after-repair{font-size:8px;line-height:11px;padding:2px 0}
 .ms-repair .gu-summary-grid>div{grid-template-columns:16px minmax(0,1fr);gap:0 2px}.ms-repair .gu-summary-grid .skin-icon{width:16px;height:16px}.ms-repair .gu-summary-value{font-size:16px;line-height:18px}.ms-repair .gu-summary-grid p{font-size:7px;line-height:10px}.ms-repair .ms-stats>.gu-mini-label{font-size:6px!important;line-height:9px}.ms-repair .ms-journal .gu-log-event{padding:4px 0}.ms-repair .ms-journal .gu-log-event p{font-size:8px;line-height:12px}.ms-repair .ms-journal>.gu-card-title{min-height:16px}
}
/* A complete first repair row must fit the actual remaining shelf, at every panel height. */
.game-ui.gu-illustrated .ms-repair .gu-repair-list{grid-auto-rows:calc(100% - 4px)}
.game-ui.gu-illustrated .ms-repair .gu-repair-item{height:100%;min-height:0}
.ms-forge-wait{font-size:10px;line-height:15px;color:#375e65;margin:0}
@media(max-width:700px),(max-height:550px){.game-ui.gu-illustrated .ms-repair .gu-repair-list{grid-auto-rows:calc(100% - 4px)}.game-ui.gu-illustrated .ms-repair .gu-repair-item{height:100%;min-height:0}.ms-forge-wait{font-size:8px;line-height:12px}.ms-hammers-left strong{font-size:19px}}
