/* Route inventory is one compact information row. Making an item usable must
   not promote it to page-heading typography or create a second set of frames. */
.route .side section.route-bag-panel:not(.party-panel){display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));align-items:center;gap:8px;padding:4px 10px}
.route .side section.route-bag-panel:not(.party-panel) .bag{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:auto;min-width:0;min-height:44px;flex:none;gap:6px;margin:0;padding:4px 6px;font-family:inherit;font-size:var(--ui-meta);font-weight:400;line-height:24px;color:var(--muted);border:0;border-radius:0;box-shadow:none;background:transparent;white-space:nowrap}
.route .side section.route-bag-panel:not(.party-panel) .bag b{font-size:inherit;font-weight:400;font-variant-numeric:tabular-nums}
.route .side section.route-bag-panel:not(.party-panel) .bag::before{content:none}
.route .side section.route-bag-panel:not(.party-panel) .route-item-button{color:#343b39}
.route .side section.route-bag-panel:not(.party-panel) .route-item-button:is(:hover,:focus,:active){background:transparent;transform:none;filter:none}
.route .side section.route-bag-panel:not(.party-panel) .route-item-button:disabled{opacity:.45;filter:none}
.route .side section.route-bag-panel:not(.party-panel) .item-open-mark{font-family:monospace;font-size:16px;line-height:24px;color:#74796f;flex:none}
.route .side section.route-bag-panel:not(.party-panel) h3{font-size:var(--ui-meta);white-space:nowrap;margin:0}
/* The existing wide-screen side column stacks inventory like the original menu. */
@media(min-width:681px){.route .side section.route-bag-panel:not(.party-panel){grid-template-columns:1fr;gap:0}.route .side section.route-bag-panel:not(.party-panel) h3{margin-bottom:4px}.route .side section.route-bag-panel:not(.party-panel) .bag{font-size:var(--ui-body)}.route .side section.route-bag-panel:not(.party-panel) .bag:not(button){padding-right:20px}}
@media(max-width:380px){.route .side section.route-bag-panel:not(.party-panel){gap:2px;padding-inline:5px}.route .side section.route-bag-panel:not(.party-panel) .bag{gap:3px;padding-inline:3px}.route .side section.route-bag-panel:not(.party-panel) .original-bag{width:18px;height:24px;background-size:24px 96px;background-position:-3px 0}.route .side section.route-bag-panel:not(.party-panel) .bag-title{gap:3px}}
/* Both route and battle medicine pickers use the roster's paper, scale and
   shared pixel cursor. Selection never changes row size or adds inner frames. */
.route-item-dialog,.live-item-dialog.route-item-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100svh - 32px);padding:12px 16px;background-color:#fffbed!important;color:#343b39;border-radius:0;font-family:inherit}
.route-item-dialog h2{font-size:var(--ui-section-title);font-weight:400;line-height:28px;margin:0 0 12px}
.route-item-targets{display:grid;gap:0}
.route-item-dialog .route-item-targets button{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-width:0;min-height:72px;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font-family:inherit;font-size:var(--ui-body);text-align:left;transform:none}
.route-item-dialog .route-item-targets button:is(:hover,:focus,:active){background:transparent;filter:none}
.route-item-dialog .route-item-targets img{width:44px;height:44px;flex:none;object-fit:contain}
.route-item-dialog .route-item-targets button>span{display:grid;gap:2px;flex:1;min-width:0}
.route-item-dialog .route-item-targets b{font-size:var(--ui-name);font-weight:400;line-height:22px}
.route-item-dialog .route-item-targets small{font-size:var(--ui-meta);line-height:18px;color:#62655e}
.route-item-dialog .route-item-targets button>small{max-width:5em;text-align:right}
.route-item-dialog .route-item-message{font-size:var(--ui-body);line-height:22px;min-height:22px;margin:8px 0}
.route-item-dialog footer{display:flex;justify-content:flex-end;margin-top:8px}
.route-item-dialog footer button{display:flex;align-items:center;min-height:44px;width:auto;margin:0;padding:6px 0 6px 8px;font-family:inherit;font-size:var(--ui-action);line-height:24px;border:0;background:transparent;box-shadow:none}
@media(max-width:360px){.route-item-dialog,.live-item-dialog.route-item-dialog{padding:10px 12px}.route-item-dialog .route-item-targets button{gap:6px}}
.route .side section.route-bag-panel:not(.party-panel) .bag b{margin-left:auto}
.route .side section.route-bag-panel:not(.party-panel) .item-open-mark{margin-left:6px}
.route-item-dialog .route-item-targets img{margin-right:8px}
.route .side section.route-bag-panel:not(.party-panel) .item-open-mark{width:8px;flex:0 0 8px;text-align:right}
@media(min-width:681px){.route .side section.route-bag-panel:not(.party-panel) .bag:not(button){padding-right:26px}}

/* Empty medicine remains visible with its real count, never a selectable row. */
.real-battle-page .combat-items button:disabled{opacity:.45;cursor:default;filter:none;background:transparent;transform:none}
.real-battle-page .combat-items[open]>div{left:0;right:auto}
