:root{color-scheme:dark;--bg:#09101d;--pane:#111c2b;--pane2:#152337;--pane3:#1a2a40;--border:#30445d;--ink:#eff7ff;--muted:#a0b3c8;--cyan:#6cdbd9;--orange:#f5ac79;--green:#a0dd99;--blue:#88bfe9}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 8% 0%,#183454 0%,#0c1625 32%,var(--bg) 68%);font:14px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}h1{font-size:21px;letter-spacing:-.5px}h2{font-size:18px}h3{font-size:15px}.small{font-size:12px}.muted{color:var(--muted)}.tiny-label{font-size:10px;letter-spacing:2px;color:#88b4c9;font-weight:800}.shell{max-width:1770px;margin:auto;padding:18px 22px 26px}.topbar{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:15px}.brand{display:flex;align-items:center;gap:14px}.brand-mark{height:46px;width:46px;display:grid;place-items:center;color:#0b1726;background:linear-gradient(140deg,#8ef6e2,#78c4fa);border-radius:14px;font-size:26px;font-weight:900;box-shadow:0 0 30px #41aee337}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.button{color:#e8f6ff;border:1px solid #48617b;border-radius:10px;background:#284361;padding:9px 13px;font-weight:700;white-space:nowrap}.button:hover{filter:brightness(1.22)}.button:disabled{opacity:.5;cursor:not-allowed}.button.ghost{background:#15263a}.button.primary{background:linear-gradient(130deg,#49cdd2,#568ce5);color:#071621;border-color:#8ad4f7}.button.sky{background:#246782;border-color:#4fbbca}.button.tiny{font-size:12px;padding:6px 9px}.cloud-pill{border:1px solid #48627a;background:#172b3e;border-radius:99px;color:#a0c4d4;padding:6px 10px;font-size:12px}.cloud-pill.online{color:#a6f6da;border-color:#337c69;background:#163d37}.cloud-pill.offline{color:#ffdaac;border-color:#8d6034}.subbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;color:var(--muted)}.subbar-title{display:flex;align-items:center;gap:12px}.subbar-title strong{font-size:14px;color:#e5f8ff}.status-text{font-size:11px;color:#89c3b7}.kbd{display:inline-block;border:1px solid #4d6582;padding:1px 6px;border-radius:5px;color:#d6e6f2}.layout{display:grid;grid-template-columns:minmax(0,1fr) 375px;align-items:start;gap:15px}.panel{border:1px solid var(--border);background:linear-gradient(155deg,rgba(21,34,52,.98),rgba(13,24,39,.98));border-radius:17px;box-shadow:0 16px 40px #0004}.planner{overflow:hidden}.planner-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px;border-bottom:1px solid #29394d}.planner-toolbar label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);font-weight:700}.planner-toolbar input{width:min(340px,56vw);color:var(--ink);background:#111f30;border:1px solid #38506c;border-radius:9px;padding:8px 10px;font-size:15px;font-weight:700}.toolbar-actions{display:flex;align-items:center;gap:12px;font-size:12px}.roster-scroll{overflow-x:auto}.roster-table{min-width:965px}.roster-head,.team-row{display:grid;grid-template-columns:90px 1fr 106px repeat(5,76px) 64px;align-items:center;column-gap:7px;padding:0 12px}.roster-head{height:36px;background:#0b1928;border-bottom:1px solid #2c445b;color:#8dabbf;text-transform:uppercase;letter-spacing:.7px;font-size:10px;font-weight:800;text-align:center}.roster-head span:nth-child(2){text-align:left}.team-row{min-height:81px;border-bottom:1px solid #293a4c;transition:background .1s}.team-row:hover{background:#20304866}.team-row.inactive{opacity:.56}.team-row.inactive:hover{opacity:.9}.row-number{display:flex;align-items:center;gap:8px;color:#8baabe;font-weight:800}.row-number label{display:flex;align-items:center;gap:7px;cursor:pointer}.row-number input{accent-color:#65d6d5;width:16px;height:16px}.number-chip{border:1px solid #3c5975;min-width:26px;padding:4px 3px;text-align:center;border-radius:7px;background:#142c42}.position-code{width:100%;background:#0f2030;border:1px solid #2e4158;color:var(--ink);padding:9px 8px;border-radius:8px;min-width:0;font-size:12px}.role-select{width:100%;background:#112237;border:1px solid #35516c;color:#d6ecfb;border-radius:8px;padding:7px 2px;font-size:12px}.slot{position:relative;margin:auto;height:65px;width:65px;background:#0e1b2c;border:1.5px dashed #4c6685;border-radius:12px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:box-shadow .12s,border-color .12s}.slot.weapon{border-color:#a28257}.slot.filled{border-style:solid;border-color:#426f87;background:#102339}.slot.weapon.filled{border-color:#b8905f}.slot:hover,.slot.target{border-color:#8debdd;box-shadow:0 0 0 2px #50d8cc33}.slot.dragover{outline:3px solid #95f5d8;background:#164953}.slot .plus{font-size:27px;color:#3f6685;font-weight:300}.slot img{width:56px;height:56px;object-fit:contain;image-rendering:auto}.item-frame{width:100%;height:100%;border:2px solid #6ba4b0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at center,#2c4b53aa,#111f32);border-radius:10px;overflow:hidden}.item-frame.weapon{border-color:#ba9767;background:radial-gradient(circle,#60402922,#171d2c)}.item-frame img{height:92%;width:92%;object-fit:contain}.item-frame.size-med{width:65px;height:65px;flex:none}.slot .remove{position:absolute;right:-5px;top:-7px;width:18px;height:18px;border-radius:50%;border:1px solid #8a7581;background:#263443;color:#e6e6eb;display:none;align-items:center;justify-content:center;font-weight:900;font-size:13px;z-index:2}.slot:hover .remove{display:flex}.slot .slot-label{position:absolute;bottom:-2px;left:4px;right:4px;pointer-events:none;font-size:9px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:1px 3px;border-radius:3px;color:#eaf8ff;background:#08101dcc}.row-actions{display:flex;flex-direction:column;gap:5px}.icon-button,.row-action{background:#1b2e43;color:#a2c1d4;border:1px solid #37536d;border-radius:7px;padding:5px 7px;line-height:1}.row-action:hover{background:#2e5a6a}.planner-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 15px;color:var(--muted);font-size:11px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#79d7b1;margin-right:5px}.library{position:sticky;top:14px;display:flex;flex-direction:column;max-height:calc(100vh - 30px);overflow:hidden}.library-head{padding:14px 15px 9px;display:flex;justify-content:space-between;align-items:center}.role-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:6px 12px 10px}.role-tabs button{font-size:11px;color:#9fb9c9;background:#15263b;border:1px solid #34485f;padding:5px 8px;border-radius:7px}.role-tabs button.active{color:#041923;background:#8ce4d6;border-color:#9ee9dc;font-weight:800}.library-controls{padding:0 12px 10px;display:flex;gap:9px;align-items:center}.library-controls input[type=search]{width:100%;min-width:0;padding:10px;background:#081a2b;border:1px solid #36536d;color:#f7fdff;border-radius:9px}.small-switch{white-space:nowrap;font-size:11px;display:flex;gap:3px;align-items:center;color:var(--muted)}.small-switch input{accent-color:#58d4c9}.target-prompt{margin:0 12px 7px;padding:8px 10px;color:#9fd6ce;background:#143840a4;border:1px solid #33616a;border-radius:8px;font-size:11px}.library-list{min-height:150px;overflow-y:auto;padding:4px 12px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.library-card{display:flex;align-items:center;gap:7px;min-width:0;height:70px;background:#17283d;border:1px solid #2f435b;border-radius:10px;padding:7px;text-align:left;color:var(--ink);cursor:grab}.library-card:hover{border-color:#7dcdd8;background:#21354e}.library-card.dragging{opacity:.45}.library-card .thumb{width:50px;height:50px;flex:none;border:1.5px solid #658196;border-radius:8px;background:#0b1829;display:grid;place-items:center;overflow:hidden}.library-card.weapon-card .thumb{border-color:#b28e62}.library-card img{width:46px;height:46px;object-fit:contain}.library-card .card-body{min-width:0;flex:1}.card-name{display:block;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-meta{font-size:10px;color:#a1bfd0}.role-marker{display:inline-flex;font-size:9px;font-weight:800;letter-spacing:.2px;padding:0 4px;border-radius:4px;background:#34516b;color:#e9f3fc;margin-top:3px}.role-marker.attacker{background:#743f46}.role-marker.healer{background:#365d3e}.role-marker.tank{background:#31567b}.role-marker.shop{background:#704c76}.item-detail{flex:none;max-height:155px;overflow:auto;border-top:1px solid #36506d;background:#11233a;padding:12px 14px;font-size:12px}.detail-top{display:flex;align-items:center;gap:9px;margin-bottom:7px}.detail-top img{width:44px;height:44px;object-fit:contain}.detail-top strong{font-size:13px}.detail-desc{color:#c0d2e1;line-height:1.6;white-space:pre-wrap}.detail-hint{color:#f7cc98;font-size:11px;margin-top:6px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(25px);background:#203b4b;border:1px solid #74cbd3;border-radius:9px;padding:12px 18px;color:#f5ffff;box-shadow:0 8px 36px #0007;opacity:0;pointer-events:none;transition:all .15s;z-index:50;max-width:85vw}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.modal-overlay{z-index:30;position:fixed;inset:0;background:#020914ca;display:grid;place-items:center;padding:18px}.modal-overlay.hidden{display:none}.modal{width:min(720px,100%);max-height:93vh;overflow:auto;background:linear-gradient(#17283d,#0c1b2c);border:1px solid #5a718d;border-radius:18px;padding:22px;box-shadow:0 20px 70px #000a}.admin-modal{width:min(1050px,100%)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.modal-heading .icon-button{font-size:22px;width:36px;height:36px}.modal p{margin:8px 0 16px}.modal textarea,.modal input,.modal select{width:100%;background:#0d1c2d;border:1px solid #3f5876;border-radius:8px;color:#f2f8ff;padding:9px;outline-color:#73d3db}.modal input[type=checkbox],.modal input[type=file]{width:auto}.field{display:block;font-size:12px;font-weight:700;color:#b9d0dd;margin:11px 0}.field>input,.field>textarea,.field>select{margin-top:5px}.modal-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:13px}.share-modal details{margin-top:18px;border-top:1px solid #3b536d;padding-top:10px}.share-modal details textarea{margin-top:12px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-section{border:1px solid #344d66;background:#112136;padding:15px;border-radius:12px}.admin-section hr{border:0;border-top:1px solid #324d66;margin:20px 0}.preview-row{display:flex;align-items:center;gap:10px}.preview-row img{max-height:54px}.checkline{display:flex;align-items:center;gap:7px;margin:12px 0;color:#b7d7e0;font-size:12px}.checkline input{accent-color:#64dfc7}.notice{color:#d4c9b1;background:#383021;border:1px solid #67533b;padding:10px;border-radius:8px;font-size:11px;margin-top:10px}.admin-section a{color:#8de5eb}.library-card:focus,.slot:focus,.button:focus{outline:2px solid #89e5ec;outline-offset:1px}
@media(max-width:1450px){.layout{grid-template-columns:minmax(0,1fr) 330px}.library-list{grid-template-columns:1fr 1fr}.library-card{padding:5px;height:64px}.library-card .thumb{width:43px;height:43px}.library-card img{width:39px;height:39px}}
@media(max-width:1020px){.layout{grid-template-columns:1fr}.library{position:static;max-height:520px}.shell{padding:12px}.library-list{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar{align-items:flex-start;flex-direction:column}.actions{justify-content:flex-start}.admin-grid{grid-template-columns:1fr}}
@media(max-width:560px){h1{font-size:18px}.library-list{grid-template-columns:repeat(2,minmax(0,1fr))}.actions .button{font-size:11px;padding:7px 8px}.subbar .hint{font-size:11px}.modal{padding:14px}.roster-head,.team-row{padding-left:8px;padding-right:8px}}

/* ===== v2.1: original sprites preserved + uniform CSS outside frame ===== */
:root{--icon-rim:#ed8752;--icon-rim-glow:#b85e38}
.image-mode-label{font-size:11px;white-space:nowrap;color:#d8b89d;background:#291f21;border:1px solid #614034;border-radius:7px;padding:7px 9px;}
.library-list{gap:10px;}
.library-card{height:168px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;padding:11px 7px 10px;text-align:center;border:1px solid #35506b;border-radius:12px;background:linear-gradient(150deg,#17293d,#132236);}
.library-card:hover{background:linear-gradient(150deg,#223d55,#1b2b41);border-color:#d18c64;}
.library-card .thumb{width:88px;height:88px;flex:none;border:2px solid var(--icon-rim);border-radius:12px;background:#091522;padding:4px;box-shadow:0 0 0 2px #07101a,0 0 0 3px var(--icon-rim-glow),inset 0 0 0 1px #241a19,0 5px 9px #0009;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.library-card.weapon-card .thumb{border-color:#dfad76;box-shadow:0 0 0 2px #07101a,0 0 0 3px #a97b46,inset 0 0 0 1px #241a19,0 5px 9px #0009;}
.library-card .thumb img{width:100%;height:100%;object-fit:contain;display:block;flex:none;}
.library-card .card-body{display:flex;flex-direction:column;align-items:center;width:100%;gap:5px;min-width:0;flex:1;overflow:hidden;}
.library-card .card-name{font-size:12px;color:#edf6ff;line-height:1.3;width:100%;text-align:center;}
.library-card .card-meta{font-size:10px;color:#80bceb;line-height:1.15;}
.library-card .role-marker,.library-card .card-body br{display:none;}
.slot.filled{background:#091929;border-color:#8c6c5d;}
.slot .item-frame{width:100%;height:100%;padding:3px;border:2px solid var(--icon-rim);border-radius:10px;background:#081621;box-shadow:inset 0 0 0 1px #1d2735;overflow:hidden;}
.slot.weapon .item-frame{border-color:#dfad76;}
.slot .item-frame img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block;}
.detail-top img{width:58px;height:58px;border:2px solid var(--icon-rim);border-radius:9px;padding:3px;background:#0b1926;object-fit:contain;}
.preview-row .item-frame{border:2px solid var(--icon-rim);background:#091522;border-radius:10px;padding:3px;box-shadow:inset 0 0 0 1px #1f2632;}
.preview-row .item-frame img{height:100%;width:100%;object-fit:contain;}
@media(max-width:1400px){.library-card{height:157px;gap:7px;padding:9px 6px}.library-card .thumb{width:82px;height:82px}}
@media(max-width:1020px){.library-card{height:156px}.library-card .thumb{width:82px;height:82px}}


/* ===== v2.2 Compact Roster · role-coded / 16 people visible ===== */
:root{--role-attack:#ed8995;--role-heal:#9bdda0;--role-tank:#82c5ee;}
.shell{max-width:1520px;}
.layout{grid-template-columns:minmax(660px,710px) minmax(0,1fr);gap:14px;}
.roster-table{min-width:0;width:max-content;max-width:none;margin:0 auto;}
.roster-head,.team-row{grid-template-columns:61px 138px 96px 40px repeat(4,45px) 58px;column-gap:7px;padding:0 9px;}
.roster-head{height:31px;font-size:10px;letter-spacing:.2px;}
.roster-head span:nth-child(2){text-align:center;}
.team-row{position:relative;min-height:52px;border-bottom:1px solid #32445b;border-left:4px solid var(--role-accent);background:linear-gradient(90deg,var(--role-tint),rgba(16,29,45,.12));transition:background .12s;}
.team-row[data-role="attacker"]{--role-accent:var(--role-attack);--role-tint:rgba(162,56,76,.24);--role-strong:rgba(174,68,91,.37);}
.team-row[data-role="healer"]{--role-accent:var(--role-heal);--role-tint:rgba(58,147,96,.22);--role-strong:rgba(70,158,104,.35);}
.team-row[data-role="tank"]{--role-accent:var(--role-tank);--role-tint:rgba(50,113,181,.26);--role-strong:rgba(65,126,198,.36);}
.team-row:hover,.team-row.inactive:hover{background:linear-gradient(90deg,var(--role-strong),rgba(34,49,71,.31));}
.team-row.inactive{opacity:.52;}
.row-number{gap:4px;}
.row-number label{gap:5px;}
.row-number input{height:14px;width:14px;accent-color:var(--role-accent);}
.number-chip{padding:2px;min-width:23px;border-radius:6px;background:#102334;border-color:var(--role-accent);color:var(--role-accent);font-size:11px;}
.position-code{width:132px;max-width:132px;padding:5px 7px;border-radius:7px;font-size:11px;}
.role-select{font-size:11px;padding:5px 2px;border-radius:7px;border-color:var(--role-accent);color:var(--role-accent);background:#0f2131;font-weight:700;}
.slot{width:36px;height:36px;border-radius:8px;border-width:1.5px;}
.slot.weapon{width:28px;height:36px;border-radius:7px;}/* 武器はスキルと同じ高さ・幅だけ約78% */
.slot .plus{font-size:20px;line-height:1;}
.slot.weapon .plus{font-size:17px;}
.slot .item-frame{padding:1px;border-width:1.5px;border-radius:6px;}
.slot.weapon .item-frame{border-radius:5px;}
.slot .item-frame img{width:100%;height:100%;}
.slot .slot-label{display:none;}
.slot .remove{height:17px;width:17px;right:-7px;top:-8px;font-size:11px;}
.row-actions{gap:3px;}
.row-action{font-size:10px;padding:3px 5px;line-height:1.05;border-radius:5px;}
.roster-scroll{padding:0 2px;}
.planner-toolbar{padding:11px 13px;}
.planner-toolbar input{width:230px;padding:6px 9px;font-size:13px;}
.planner-foot{padding:9px 13px;}
.library-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.library-card{height:155px;gap:7px;padding:9px 6px;}
.library-card .thumb{height:81px;width:81px;}
.library-card .card-body{gap:3px;}
.library-card .card-name{font-size:11px;}
.library-card .card-meta{font-size:10px;}
@media(max-width:1420px){
 .layout{grid-template-columns:minmax(660px,710px) minmax(390px,1fr);}
 .library-list{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:1160px){
 .layout{grid-template-columns:minmax(0,1fr);}
 .library{position:static;max-height:520px;}
 .library-list{grid-template-columns:repeat(4,minmax(0,1fr));}
 .roster-table{margin:0 auto;}
}
@media(max-width:690px){
 .roster-table{margin:0;}
 .library-list{grid-template-columns:repeat(2,minmax(0,1fr));}
 .planner-toolbar{gap:8px;}
 .planner-toolbar input{width:min(205px,65vw);}
}

/* v2.4: 元スキル画像の枠色を尊重。ロール色は編成行だけに表示。 */
.library-card:not(.weapon-card) .thumb {
  border:0; padding:0; background:transparent; box-shadow:none; overflow:visible;
}
.library-card:not(.weapon-card) .thumb img {width:100%;height:100%;object-fit:contain;}
.slot:not(.weapon).filled {border-color:transparent; background:transparent;}
.slot:not(.weapon) .item-frame {
  border:0; padding:0; background:transparent; box-shadow:none; overflow:hidden;
}
.slot:not(.weapon) .item-frame img {width:100%;height:100%;object-fit:contain;}
.detail-top img {border:0; padding:0; background:transparent;}
.preview-row .item-frame:not(.weapon) {border:0; padding:0; background:transparent; box-shadow:none;}
.roster-head,.team-row {grid-template-columns:61px 138px 96px 40px repeat(4,45px) 66px;}
.row-actions {gap:3px;}
.row-action.danger {color:#f4b6b6;border-color:#75424e;}
.row-action.danger:hover {background:#613042;color:white;}
.roster-empty {padding:24px 16px;color:#a9c5d4;text-align:center;font-size:12px;}
.toolbar-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
#addRowBtn {background:#2a5f59;border:1px solid #64b7a4;color:#eafff6;white-space:nowrap;}
#addRowBtn:disabled {opacity:.45;cursor:not-allowed;}
.row-number{justify-content:center;}

/* v2.5: double frame from reference screenshot. Inner in-game colors and T / green arrow survive.
   CSS rim only decorates the surrounding card; artwork is the PNG image. */
.library-card:not(.weapon-card) .thumb {
  width:82px;height:82px;flex:none;border:2px solid #ed8752;
  border-radius:12px;background:#0c1b2d;padding:4px;
  box-shadow:0 0 0 2px #08101b,0 0 0 3px #b85e38,inset 0 0 0 1px #241a19,0 5px 9px #0008;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.library-card:not(.weapon-card) .thumb img{height:100%;width:100%;object-fit:contain;}
.slot:not(.weapon).filled {border-color:transparent;background:transparent;}
.slot:not(.weapon) .item-frame {
  padding:1px;border:1.5px solid #ed8752;border-radius:7px;background:#0c1b2d;
  box-shadow:inset 0 0 0 1px #35201e;overflow:hidden;
}
.slot:not(.weapon) .item-frame img{width:100%;height:100%;object-fit:contain;}
.detail-top img{border:2px solid #ed8752;padding:3px;background:#0c1b2d;border-radius:8px;}
.preview-row .item-frame:not(.weapon){border:2px solid #ed8752;padding:3px;background:#0c1b2d;box-shadow:none;border-radius:9px;}
#iconModeBtn{white-space:nowrap;flex-shrink:0;border-color:#a27052;color:#ffd8b6;background:#2a2632;}

/* === v2.6: large, legible party planner, responsive without losing the icon library === */
.shell{max-width:1940px;padding:18px 25px 32px}
.layout{grid-template-columns:minmax(0,1.75fr) minmax(430px,.82fr);gap:18px}
.planner-toolbar{padding:15px 19px}
.planner-toolbar input{width:210px;font-size:14px;padding:8px 10px}
.planner-foot{font-size:12px;padding:14px 18px}
.roster-table{min-width:935px;width:100%}
.roster-head,.team-row{grid-template-columns:60px 154px 114px 70px repeat(4,77px) 96px;column-gap:9px;padding-inline:14px;justify-content:space-between}
.roster-head{height:48px;font-size:12px}
.team-row{min-height:92px}
.position-code{width:150px;max-width:150px;font-size:13px;padding:9px 10px}
.role-select{font-size:13px;padding:8px 4px}
.slot{width:56px;height:56px;border-radius:9px}
.slot.weapon{width:43px;height:56px;border-radius:8px}
.slot .plus{font-size:26px}
.slot.weapon .plus{font-size:23px}
.slot .item-frame{border-radius:9px}
.slot.weapon .item-frame{border-radius:7px}
.slot .remove{height:19px;width:19px}
.number-chip{padding:4px;min-width:29px;font-size:13px}
.row-actions{width:88px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.row-action{font-size:11px;padding:5px 3px;min-width:0}
.library{max-height:calc(100vh - 26px)}
.library-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.library-card{height:100px;padding:10px;align-items:center;flex-direction:row;gap:11px}
.library-card .thumb{height:70px;width:70px}
.library-card .card-body{flex:1}
.library-card .card-name{font-size:13px}
.library-card .card-meta{font-size:11px}
.library-card:not(.weapon-card) .thumb{height:70px;width:70px}
.item-detail{max-height:210px;font-size:13px}
/* Frame rim hues match the associated role instead of imposing orange on every item. */
.library-card.role-attacker,.role-attacker{--rim-color:#f49b68;--rim-shadow:#a95937}
.library-card.role-healer,.role-healer{--rim-color:#92d578;--rim-shadow:#538349}
.library-card.role-tank,.role-tank{--rim-color:#77bcf3;--rim-shadow:#3c76a4}
.library-card.role-common,.role-common,.library-card.role-all,.role-all{--rim-color:#aabfc6;--rim-shadow:#647e8b}
.library-card.role-shop,.role-shop{--rim-color:#cb9add;--rim-shadow:#80528e}
.library-card:not(.weapon-card) .thumb{border:2px solid var(--rim-color,#f49b68);box-shadow:0 0 0 2px #07121e,0 0 0 3px var(--rim-shadow,#a95937),inset 0 0 0 1px #263244,0 5px 10px #0007}
.slot:not(.weapon).filled .item-frame{border:2px solid var(--rim-color,#f49b68);box-shadow:inset 0 0 0 1px var(--rim-shadow,#a95937)}
.slot:not(.weapon).filled{background:transparent}
.slot.target{outline:2px solid #95eddf;outline-offset:3px}
.detail-top img.role-attacker,.detail-top img.role-healer,.detail-top img.role-tank,.detail-top img.role-common,.detail-top img.role-shop{border:2px solid var(--rim-color);border-radius:8px;padding:3px;background:#0c1b2d}
#targetPrompt{font-size:12px}
@media(max-width:1590px){
 .layout{grid-template-columns:minmax(0,1fr)}
 .library{position:static;max-height:780px}
 .library-list{grid-template-columns:repeat(4,minmax(0,1fr))}
 .roster-table{width:100%}
}
@media(max-width:1020px){
 .roster-table{width:max-content;min-width:935px}
 .library-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell{padding:12px}
}
@media(max-width:700px){
 .library-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .library-card{height:92px;gap:6px;padding:7px}
 .library-card:not(.weapon-card) .thumb{width:60px;height:60px}
}

/* Optional full-width team view, especially useful for 16-person planning. */
.shell.planner-expanded .layout{grid-template-columns:minmax(0,1fr)}
.shell.planner-expanded .library{position:static;max-height:760px}
.shell.planner-expanded .library-list{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1020px){.shell.planner-expanded .library-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.shell.planner-expanded .library-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ==== v2.7: responsive fixed-viewport workspace; scroll inside each panel ==== */
html, body {height:100%; min-height:0; width:100%; overflow:hidden;}
body {overscroll-behavior:none;}
.shell {--planner-share:56%; --slot-size:clamp(38px, 5.8dvh, 62px); 
  height:100dvh; max-width:none; width:100%; min-height:0; margin:0;
  padding:clamp(8px,1vw,16px); display:flex; flex-direction:column;
  gap:0; overflow:hidden;}
.shell .topbar{flex:0 0 auto;min-height:0;gap:9px;margin-bottom:8px;}
.shell .topbar .brand{gap:9px;flex-shrink:0;}
.shell .topbar .brand-mark{height:38px;width:38px;border-radius:10px;font-size:22px;}
.shell .topbar h1{font-size:clamp(15px,1.4vw,20px);white-space:nowrap;}
.shell .topbar .actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;min-width:0;gap:5px;padding:1px 1px 4px;}
.shell .topbar .button{font-size:clamp(10px,.87vw,13px);padding:clamp(5px,.55vw,8px) clamp(7px,.7vw,12px);}
.shell .subbar{flex:0 0 auto;margin-bottom:7px;gap:6px;font-size:12px;}
.shell .subbar .hint{font-size:11px;}
.shell .layout,.shell.planner-expanded .layout{
  display:grid; grid-template-columns:minmax(0,var(--planner-share)) 13px minmax(0,1fr);
  gap:0;align-items:stretch;min-height:0; flex:1 1 auto; width:100%;overflow:hidden;
}
.shell .planner,.shell .library{
  min-height:0;max-height:none;height:100%; min-width:0;
  overflow:hidden;position:relative;top:auto;display:flex;flex-direction:column;
}
.shell .planner-toolbar{flex:0 0 auto;padding:clamp(7px,.7vw,12px);gap:7px;}
.shell .planner-toolbar input{width:clamp(120px,14vw,250px);padding:6px 8px;font-size:12px;}
.shell .toolbar-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end;}
.shell .toolbar-actions .muted{display:none;}
.shell .toolbar-actions .button{font-size:11px;padding:5px 8px;}
.shell .button.danger-clear{border:1px solid #b75d5d;background:#562833;color:#ffd6d6;}
.shell .button.danger-clear:hover{background:#7e3540;}
.shell .roster-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0;}
.shell .roster-table{width:100%;min-width:calc(340px + var(--slot-size) * 4.76);margin:0;}
.shell .roster-head,.shell .team-row{
  grid-template-columns:35px minmax(68px,1fr) minmax(78px,96px) calc(var(--slot-size)*.60) repeat(4,var(--slot-size)) 74px;
  column-gap:clamp(3px,.35vw,7px);justify-content:normal;padding:0 clamp(6px,.7vw,12px);
}
.shell .roster-head{height:36px;font-size:10px;position:sticky;top:0;z-index:4;}
.shell .team-row{min-height:calc(var(--slot-size) + 16px);}
.shell .position-code{width:100%;max-width:none;min-width:0;padding:5px 7px;font-size:clamp(10px,.9vw,13px);}
.shell .role-select{font-size:clamp(10px,.9vw,13px);padding:5px 2px;}
.shell .slot{width:var(--slot-size);height:var(--slot-size);min-width:0;border-radius:9px;}
/* Weapon is genuinely half the skill icon in both width and height (reference drawing). */
.shell .slot.weapon{width:calc(var(--slot-size)*.48);height:calc(var(--slot-size)*.48);border-radius:6px;}
.shell .slot.weapon .plus{font-size:clamp(11px,1.5dvh,17px);}
.shell .slot .plus{font-size:clamp(16px,2.9dvh,26px);}
.shell .slot .item-frame{height:100%;width:100%;padding:1px;}
.shell .slot .item-frame img{width:100%;height:100%;}
.shell .slot.weapon .item-frame{border-radius:4px;}
.shell .row-actions{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;}
.shell .row-action{font-size:clamp(9px,.72vw,11px);padding:5px 2px;}
.shell .planner-foot{flex:0 0 auto;padding:6px 12px;font-size:10px;min-height:29px;}
.shell .library-head{flex:0 0 auto;padding:10px 12px 6px;}
.shell .library-head h2{font-size:16px;}
.shell .role-tabs{flex:0 0 auto;gap:4px;padding:4px 9px 7px;}
.shell .role-tabs button{padding:4px 7px;font-size:11px;}
.shell .library-controls{flex:0 0 auto;padding:0 10px 6px;gap:6px;}
.shell .library-controls input[type=search]{padding:7px 9px;}
.shell .target-prompt{flex:0 0 auto;margin:0 10px 6px;padding:6px 8px;font-size:11px;}
.shell .library-list{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr));
  grid-auto-rows:max-content;align-content:start;padding:5px 10px 12px;gap:7px;}
.shell .library-card{height:clamp(76px,10dvh,104px);padding:6px;gap:7px;flex-direction:row;}
.shell .library-card .thumb,.shell .library-card:not(.weapon-card) .thumb{
  width:clamp(46px,6.6dvh,70px);height:clamp(46px,6.6dvh,70px);flex-shrink:0;}
.shell .library-card .card-name{font-size:clamp(10px,1.06vw,13px);}
.shell .library-card .card-meta{font-size:10px;}
.shell .item-detail{flex:0 0 auto;max-height:clamp(90px,20dvh,190px);overflow:auto;padding:8px 12px;}
/* Drag handle: keyboard arrows, pointer drag, double-click reset. */
.panel-divider{position:relative;display:flex;align-items:center;justify-content:center;
  cursor:col-resize;touch-action:none;user-select:none;z-index:8;background:transparent;border:0;}
.panel-divider:before{content:'';position:absolute;left:50%;top:14px;bottom:14px;width:2px;
  transform:translateX(-50%);background:linear-gradient(#243b53,#77a9ba,#243b53);border-radius:5px;}
.panel-divider:hover:before,.panel-divider.resizing:before{width:4px;background:#7eece2;box-shadow:0 0 13px #69cfd7a8;}
.divider-grip{display:grid;gap:5px;border:1px solid #527489;padding:9px 3px;border-radius:9px;background:#233d50;z-index:1;}
.divider-grip span{height:4px;width:4px;border-radius:50%;background:#b4e2f0;}
.panel-divider:focus-visible{outline:2px solid #96e8e2;outline-offset:0;}
body.dragging-panels,body.dragging-panels *{cursor:col-resize!important;user-select:none!important;}
/* Older stacked/mobile rules are intentionally overridden: no document scrolling. */
@media(max-width:1200px){
 .shell .layout,.shell.planner-expanded .layout{grid-template-columns:minmax(0,var(--planner-share)) 13px minmax(0,1fr);}
 .shell .library{height:100%;max-height:none;}
 .shell .roster-table{margin:0;}
 .shell .library-list{grid-template-columns:repeat(auto-fill,minmax(min(135px,100%),1fr));}
}
@media(max-width:850px){
 .shell .topbar .brand-mark{height:30px;width:30px;font-size:18px;}
 .shell .topbar .tiny-label{display:none;}
 .shell .subbar .hint{display:none;}
 .shell .planner-toolbar label{font-size:0;gap:0;}
 .shell .planner-toolbar input{width:clamp(105px,14vw,160px);}
 .shell .planner-foot>div:first-child{display:none;}
 .shell .library-list{grid-template-columns:1fr;}
 .shell .library-card .thumb,.shell .library-card:not(.weapon-card) .thumb{width:45px;height:45px;}
 .shell .library-card{height:64px;}
}
@media(max-height:650px){
 .shell .subbar{margin-bottom:4px;}
 .shell .topbar{margin-bottom:5px;}
 .shell .topbar .brand-mark{height:30px;width:30px;}
 .shell .library-head{padding:5px 10px 3px;}
 .shell .item-detail{max-height:90px;}
 .shell .target-prompt{display:none;}
 .shell .planner-toolbar{padding:5px 8px;}
}

/* v2.8: position abbreviations (MT/ST/MH/SH), never player names. */
.shell .roster-head,.shell .team-row{
  grid-template-columns:35px 64px minmax(78px,95px) calc(var(--slot-size)*.60) repeat(4,var(--slot-size)) 74px;
  justify-content:start;
}
.shell .roster-table{
  min-width:calc(35px + 64px + 95px + var(--slot-size)*4.6 + 74px + 72px);
}
.shell .position-code{
  max-width:64px;
  text-align:center;
  letter-spacing:.04em;
  font-weight:700;
  font-size:clamp(11px,.9vw,13px);
  padding:5px 2px;
}

/* v3.0: selected party row, narrow assignment code, row reset, actual transparent weapon icon */
.shell .roster-head,.shell .team-row{grid-template-columns:35px 54px minmax(77px,95px) calc(var(--slot-size)*.60) repeat(4,var(--slot-size)) minmax(92px,108px);}
.shell .roster-table{min-width:calc(35px + 54px + 95px + var(--slot-size)*4.6 + 108px + 72px);}
.shell .position-code{max-width:54px;}
.shell .team-row.selected-row{background:linear-gradient(90deg,color-mix(in srgb,var(--role-strong) 85%, #1c3e4a),#172b41 85%);outline:1px solid #7adcd1;outline-offset:-1px;}
.shell .team-row.selected-row .select-row{background:#80e4d8;color:#062432;border-color:#80e4d8;}
.shell .select-row{border:1px solid var(--role-accent,#6caace);color:var(--role-accent,#9acbdb);background:#102739;border-radius:6px;min-width:27px;height:27px;cursor:pointer;font-weight:700;font-size:11px;}
.shell .select-row:hover{background:#204758;color:#eaffff;}
.shell .row-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;align-content:center;}
.shell .row-action{padding:3px 1px;font-size:clamp(9px,.69vw,10px);}
.shell .row-action.reset-row{grid-column:1/-1;color:#f7d2ae;border-color:#775d48;background:#2b2526;}
.shell .row-action.reset-row:hover{background:#61443b;}
.shell .library-card.invisible-weapon .thumb{background:repeating-conic-gradient(#15253b 0 25%,#264158 0 50%) 50%/12px 12px;position:relative;}
.shell .library-card.invisible-weapon .thumb::after{content:'透明';font-weight:800;font-size:12px;color:#e7f0fe;background:#1c3455b0;border-radius:4px;padding:2px 4px;position:absolute;inset:auto;}
.shell .slot.weapon.filled:has(img[src*="weapon_044"]) .item-frame{background:repeating-conic-gradient(#15253b 0 25%,#264158 0 50%) 50%/10px 10px;}
.shell .slot.weapon.filled:has(img[src*="weapon_044"]) .item-frame::after{content:'透';position:absolute;inset:0;display:grid;place-items:center;font-weight:700;color:#e4f7fa;font-size:11px;pointer-events:none;}

/* v3.1.1: restore original v3.0 roster geometry. */
.shell .library-card.invisible-weapon .thumb::after{content:"透";}
.shell .slot.weapon.filled:has(img[src*="weapon_044"]) .item-frame::after{content:"透";}

/* === v3.2: roster and ALL inner controls are enlarged together, retaining the weapon:skill 0.48 ratio === */
/* The main panel is the size container so the slot size responds to the width available after pane resizing. */
.shell .planner { container-type:inline-size; }
.shell .roster-scroll { --slot-size:clamp(72px, min(11.8dvh, 10.5cqw), 112px); }
.shell .roster-table { min-width:calc(407px + var(--slot-size) * 4.55); }
.shell .roster-head,.shell .team-row {
  grid-template-columns:44px 70px minmax(100px,112px) calc(var(--slot-size)*.56) repeat(4,var(--slot-size)) minmax(112px,122px);
  column-gap:clamp(4px,.4vw,8px);
  padding-inline:clamp(8px,.7vw,13px);
  justify-content:space-between;
}
.shell .roster-head { height:47px; font-size:12px; }
.shell .team-row { min-height:calc(var(--slot-size) + 31px); }
.shell .select-row { min-width:36px; height:37px; font-size:14px; border-radius:9px; }
.shell .position-code { width:100%;max-width:none;font-size:clamp(15px,1vw,17px);min-height:45px;padding:9px 3px; }
.shell .role-select { font-size:clamp(14px,1vw,16px);min-height:45px;padding:6px 4px; }
.shell .slot { width:var(--slot-size);height:var(--slot-size);border-radius:12px; }
.shell .slot.weapon { width:calc(var(--slot-size)*.48);height:calc(var(--slot-size)*.48);border-radius:8px; }
.shell .slot .plus { font-size:clamp(26px,3.6dvh,38px); }
.shell .slot.weapon .plus { font-size:clamp(14px,2dvh,20px); }
.shell .slot .slot-label { font-size:clamp(10px,1.15dvh,12px);padding:2px 3px; }
.shell .slot .remove { width:25px;height:25px;font-size:17px;top:-10px;right:-8px; }
.shell .row-actions { width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px; }
.shell .row-action { min-height:28px;padding:5px 2px;font-size:clamp(11px,.85vw,13px);border-radius:6px; }
.shell .row-action.reset-row { min-height:27px; }
.shell .library-card.invisible-weapon .thumb { background:#0d1b2d; }
.shell .library-card.invisible-weapon .thumb::after { content:none!important;display:none!important; }
.shell .slot.weapon.filled:has(img[src*="weapon_044"]) .item-frame { background:#0d1b2d; }
.shell .slot.weapon.filled:has(img[src*="weapon_044"]) .item-frame::after { content:none!important;display:none!important; }
/* prevent accidental overlays from the earlier version on all preview contexts */
.shell .slot.weapon .item-frame::after { content:none!important; }
@media (max-width:850px) {
 .shell .roster-scroll { --slot-size:clamp(66px,min(11.8dvh,10.5cqw),102px); }
 .shell .roster-table { min-width:calc(390px + var(--slot-size)*4.55); }
}


/* ===== v3.3 | readable, balanced roster cards =====
   Keep skill tiles at the approved v3.2 size. Enlarge every OTHER
   row element and use role-color visual hierarchy, without new icons. */
.shell .planner{--row-card-bg:#14243a;}
.shell .roster-scroll{padding:1px 7px 12px;scrollbar-gutter:stable;}
.shell .roster-table{min-width:calc(451px + var(--slot-size) * 4.75);width:100%;}
.shell .roster-head,.shell .team-row{
  grid-template-columns:52px 78px 118px calc(var(--slot-size)*.77) repeat(4,var(--slot-size)) 148px;
  column-gap:clamp(6px,.48vw,9px);
  padding-inline:clamp(9px,.8vw,14px);
  justify-content:space-between;
}
.shell .roster-head{
  position:sticky;top:0;z-index:6;height:48px;
  background:#0b1a2b;
  border:1px solid #314962;
  border-radius:10px;
  margin:0 0 9px;
  font-size:11px;letter-spacing:.05em;
  color:#a9c5d9;
}
.shell .roster-head span{text-align:center;}
.shell .roster-head span:nth-child(2){text-align:center;}
.shell .team-row{
  position:relative;
  margin:0 0 9px;
  min-height:calc(var(--slot-size) + 35px);
  padding-block:14px;
  border:1px solid color-mix(in srgb,var(--role-accent) 32%,#334762);
  border-left:5px solid var(--role-accent);
  border-radius:14px;
  background:
    linear-gradient(110deg,color-mix(in srgb,var(--role-accent) 11%,#14243a) 0%,#14233a 36%,#111f32 100%);
  box-shadow:inset 0 1px #ffffff0b,0 3px 11px #0004;
  transition:border-color .16s,background .16s,box-shadow .16s;
}
.shell .team-row::before{
  content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;
  border-radius:0 6px 6px 0;background:var(--role-accent);
  box-shadow:0 0 10px color-mix(in srgb,var(--role-accent) 48%,transparent);
  pointer-events:none;
}
.shell .team-row:hover,.shell .team-row.inactive:hover{
  border-color:color-mix(in srgb,var(--role-accent) 63%,#334762);
  background:linear-gradient(110deg,color-mix(in srgb,var(--role-accent) 17%,#14243a),#182c44 55%,#15283d);
  box-shadow:0 6px 20px #0004;
}
.shell .team-row.selected-row{
  outline:none;
  border-color:color-mix(in srgb,var(--role-accent) 88%,#fafafa);
  background:linear-gradient(110deg,color-mix(in srgb,var(--role-accent) 22%,#10243a),#192b44 55%,#12253a);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--role-accent) 26%,transparent),0 7px 22px #0006;
}
.shell .team-row.selected-row::after{
  content:"";display:none;position:absolute;right:12px;top:5px;pointer-events:none;
  font-size:9px;line-height:1.2;font-weight:800;letter-spacing:.03em;
  color:var(--role-accent);opacity:.95;
}
.shell .team-row.inactive{opacity:.58;}
.shell .row-number{justify-content:center;}
.shell .select-row{
  min-width:43px;width:43px;height:47px;
  border-radius:12px;font-size:17px;font-weight:900;
  border:1px solid color-mix(in srgb,var(--role-accent) 65%,#46647c);
  background:color-mix(in srgb,var(--role-accent) 13%,#102338);
  color:var(--role-accent);
  box-shadow:inset 0 1px #ffffff15;
}
.shell .team-row.selected-row .select-row{
  background:var(--role-accent);border-color:var(--role-accent);
  color:#0b1c2a;box-shadow:0 2px 13px color-mix(in srgb,var(--role-accent) 28%,transparent);
}
.shell .position-code,.shell .role-select{
  min-height:60px;height:60px;
  border-radius:11px;font-size:16px;line-height:1.1;
  border-width:1.5px;
  box-shadow:inset 0 2px 8px #0003;
}
.shell .position-code{
  width:100%;max-width:none;min-width:0;
  padding:12px 6px;letter-spacing:.045em;font-weight:900;
  text-align:center;
  background:#101f31;color:#f2f8fe;border-color:#476075;
}
.shell .position-code::placeholder{color:#728b9e;font-size:14px;font-weight:500;}
.shell .position-code:focus,.shell .role-select:focus{
  outline:2px solid var(--role-accent);outline-offset:2px;
}
.shell .role-select{
  padding:9px 5px;
  font-size:16px;font-weight:800;
  color:var(--role-accent);background:color-mix(in srgb,var(--role-accent) 9%,#102237);
  border-color:color-mix(in srgb,var(--role-accent) 55%,#466076);
}
/* A weapon is visually smaller than a skill, but no longer tiny. */
.shell .slot.weapon{
  height:calc(var(--slot-size)*.75);width:calc(var(--slot-size)*.75);
  border-radius:12px;border-width:2px;
  background:linear-gradient(150deg,#1e2d41,#132235);
}
.shell .slot.weapon .plus{font-size:clamp(20px,2.9dvh,30px);}
.shell .slot.weapon .item-frame{border-radius:9px;}
.shell .slot:not(.weapon){
  border-radius:13px;
  box-shadow:inset 0 1px #ffffff0d;
}
.shell .slot:not(.weapon):hover,.shell .slot.weapon:hover{
  box-shadow:0 0 0 2px color-mix(in srgb,var(--role-accent) 43%,transparent),0 0 15px #7be5ea20;
}
.shell .row-actions{
  display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;align-content:center;
}
.shell .row-action{
  min-height:33px;padding:6px 5px;
  border-radius:8px;font-size:12px;line-height:1.1;font-weight:800;
  border:1px solid #41617b;background:#203a51;color:#d9edfa;
}
.shell .row-action:hover{background:#305674;border-color:#79b8d6;}
.shell .row-action.reset-row{
  min-height:35px;grid-column:1/-1;
  background:#293639;color:#f8cbae;border-color:#8e7465;
}
.shell .row-action.reset-row:hover{background:#664339;}
.shell .row-action.danger{color:#f5b9bc;border-color:#7d525d;background:#342736;}
.shell .row-action.danger:hover{background:#653346;}
.shell .roster-head,.shell .team-row {scroll-margin-top:59px;}
@media(max-width:1100px){
  .shell .roster-table{min-width:calc(426px + var(--slot-size)*4.75);}
  .shell .roster-head,.shell .team-row{
    grid-template-columns:48px 72px 112px calc(var(--slot-size)*.77) repeat(4,var(--slot-size)) 138px;
    column-gap:6px;padding-inline:10px;
  }
  .shell .position-code,.shell .role-select{min-height:54px;height:54px;font-size:15px;}
  .shell .row-action{min-height:31px;font-size:11px;}
}
@media(max-height:680px){
  .shell .team-row{padding-block:8px;min-height:calc(var(--slot-size) + 20px);}
  .shell .position-code,.shell .role-select{min-height:48px;height:48px;}
  .shell .row-action{min-height:28px;padding-block:4px;}
  .shell .row-action.reset-row{min-height:29px;}
}
