.trade-drachi-panel{display:grid;gap:14px;color:#e5e9dc}
:is(#modal,#trade-drachi-notice-overlay)[data-trade-drachi-notice]{width:min(520px,calc(100vw - 28px));max-width:520px;max-height:calc(100dvh - 28px);padding:22px;overflow:auto}
:is(#modal,#trade-drachi-notice-overlay)[data-trade-drachi-notice] .modal-head{gap:12px;margin-bottom:16px}
:is(#modal,#trade-drachi-notice-overlay)[data-trade-drachi-notice] .modal-head h2{min-width:0;overflow-wrap:anywhere;font-size:24px;margin:0}
:is(#modal,#trade-drachi-notice-overlay)[data-trade-drachi-notice] .modal-head>button{flex:none}
#trade-drachi-notice-overlay::backdrop{background:#07191b66;backdrop-filter:none}
.trade-drachi-notice{display:grid;gap:14px;min-width:0;color:#d7e1d1}
.trade-drachi-notice-loot{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid #82976f;border-radius:12px;background:#2c493e}
.trade-drachi-notice-picture{display:block;width:66px;height:76px;flex:none;border-radius:8px;overflow:hidden;background:#173733}
.trade-drachi-notice-picture>.trade-good-image{display:block;width:100%;height:100%;object-fit:cover}
.trade-drachi-notice-loot>div{display:grid;gap:6px;min-width:0}
.trade-drachi-notice-loot strong{font-size:19px;line-height:1.3;color:#f4deb0;overflow-wrap:anywhere}
.trade-drachi-notice-loot span:not(.trade-drachi-notice-picture){font-size:12px;color:#c8d7c3}
.trade-drachi-notice-points{font-size:18px;color:#abedac}
.trade-drachi-notice p{font-size:13px;line-height:1.6;margin:0}
.trade-drachi-notice .trade-drachi-notice-status{font-size:16px;line-height:1.5;color:#f1d598}
.trade-drachi-notice>.wide{margin-top:2px;min-height:44px}
@media(max-width:420px){.trade-drachi-notice-loot{gap:10px;padding:10px}.trade-drachi-notice-picture{width:56px;height:64px}.trade-drachi-notice-loot strong{font-size:17px}.trade-drachi-notice .trade-drachi-notice-status{font-size:15px}}
.trade-drachi-intro{display:flex;align-items:center;gap:18px}
.trade-drachi-intro>img{width:92px;height:92px;flex:0 0 92px;object-fit:contain}
.trade-drachi-intro h3{margin:0 0 6px;color:#efd099;font-size:22px}
.trade-drachi-panel p{margin:0;font-size:13px;line-height:1.65}
.trade-drachi-buy{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #6a8067;border-radius:10px;background:#304b40}
.trade-drachi-buy>span{display:grid;grid-template-columns:35px auto;gap:4px 10px;align-items:center}
.trade-drachi-buy img{width:35px;height:43px;object-fit:contain;grid-row:span 2}
.trade-drachi-buy strong{font-size:17px;color:#efd099}
.trade-drachi-buy small{font-size:11px;color:#c8d4bd}
.trade-drachi-buy button{flex:0 0 auto}
.trade-drachi-purchases{display:grid;grid-auto-rows:1fr;gap:8px;min-width:0;margin:8px 0}
.trade-drachi-purchases .trade-drachi-swap{display:grid;grid-template-columns:minmax(0,1fr) 18px 56px;align-items:start;gap:6px;padding:9px;border:1px solid #6a8067;border-radius:9px;background:#304b40;width:100%;min-width:0;text-align:center}
.trade-drachi-payment-ingredients{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:start;gap:4px;min-width:0}
.trade-drachi-payment-marks{grid-template-columns:minmax(0,1fr)}
.trade-drachi-payment-plus{padding-top:18px;color:#e9c992}
.trade-drachi-purchases .trade-recipe-good{min-width:0}
.trade-drachi-purchases .trade-recipe-good strong{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.trade-drachi-purchases .trade-recipe-good small{display:block;font-size:10px;line-height:1.4}
.trade-drachi-purchases .trade-storage-slot{width:48px;height:56px;min-height:0;margin:0 auto 4px}
.trade-drachi-purchases .trade-storage-slot img,.trade-drachi-purchases .trade-storage-slot svg{width:100%;height:100%;object-fit:contain}
.trade-drachi-payment-label{grid-column:1/-1;color:#f0cf95;font-size:12px;font-weight:700;line-height:1.3}
.trade-drachi-purchases button:not(:disabled):hover,.trade-drachi-purchases button:focus-visible{border-color:#f2d493;background:#3c5747}
.trade-home-drachi>h4{display:flex;align-items:center;gap:7px;margin-bottom:7px}
.trade-home-drachi>h4>img{width:24px;height:24px;object-fit:contain}
.trade-home-drachi .trade-drachi-purchases-compact{gap:5px;margin:0}
.trade-home-drachi .trade-drachi-purchases-compact .trade-drachi-swap{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:center;gap:5px;padding:6px 8px;min-height:44px}
.trade-drachi-purchases-compact .trade-drachi-cost{display:flex;align-items:center;gap:6px;min-width:0;text-align:left}
.trade-drachi-purchases-compact .trade-drachi-mark-purchase>.trade-drachi-cost{grid-column:1/-1}
.trade-drachi-cost-art{display:block;flex:none;width:22px;height:27px;overflow:hidden;border-radius:3px}
.trade-drachi-cost-art>.trade-good-image{display:block;width:100%;height:100%;object-fit:cover}
.trade-drachi-cost>span:last-child{display:grid;gap:1px;min-width:0}
.trade-drachi-cost strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.trade-drachi-cost small{font-size:10px;line-height:1.25;opacity:.9}
.trade-drachi-cost-plus{color:#edcc90;font-size:14px}
.trade-drachi-hint,.trade-drachi-explanation{color:#b8cbc2}
.trade-drachi-status{display:grid;gap:5px;padding:13px 15px;border-left:3px solid #e7bb73;border-radius:4px;background:#233f3b}
.trade-drachi-status>strong{color:#efca8b}
.trade-drachi-status>span{font-size:13px;line-height:1.6}
#trade-drachi-form{display:grid;gap:14px;margin:0}
#trade-drachi-form>label{display:grid;gap:7px;font-size:12px;font-weight:600}
#trade-drachi-form select{width:100%;margin:0;min-width:0}
.trade-drachi-route-summary{padding:12px;border:1px solid #577366;border-radius:9px;background:#173436}
.trade-drachi-route-summary>strong,.trade-drachi-target-fields>strong{font-size:12px;color:#efd099}
.trade-drachi-route-summary>p{font-size:11px;margin-top:6px}
.trade-drachi-route-summary>span{display:block;font-size:12px;color:#d6dfc6;text-align:right}
.trade-drachi-route-preview{display:block;width:100%;height:120px;margin:8px 0;overflow:visible}
.trade-drachi-route-preview>path{fill:none;stroke:#cba96e;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.trade-drachi-route-preview circle{stroke:#142f30;stroke-width:2}
.trade-drachi-route-start{fill:#9bc790}.trade-drachi-route-ruin{fill:#b56a4a}.trade-drachi-route-end{fill:#ecc276}
.trade-drachi-target-fields>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.trade-drachi-target-fields span{padding:5px 8px;font-size:11px;background:#4b4034;border:1px solid #a47750;border-radius:6px;color:#f4d4a4}
.trade-drachi-marker{pointer-events:none;outline:none}.trade-drachi-token{pointer-events:all;cursor:pointer}.trade-drachi-marker:hover .trade-drachi-ring,.trade-drachi-marker:focus-visible .trade-drachi-ring{stroke-width:5;fill:#46614b}
.trade-drachi-leader{stroke-width:1.5;opacity:.9}
.trade-drachi-ring{fill:#193938;stroke-width:3}
.trade-drachi-badge{fill:#193938;stroke:#c8a978;stroke-width:1}
.trade-drachi-count{font-size:8px;font-weight:700;fill:#f4d79d}
.trade-drachi-marker.waiting .trade-drachi-ring{fill:#593c34}.trade-drachi-marker.returning .trade-drachi-ring{fill:#425c35}.trade-drachi-marker.delivering .trade-drachi-ring{fill:#665439}
.trade-drachi-loot>div{width:22px;height:26px;display:grid;place-items:center;border-radius:4px;border:1px solid #edcc8a;background:#24463f}.trade-drachi-loot .trade-good-image{width:100%;height:100%;object-fit:contain}
.trade-drachi-beute{display:flex;align-items:center;gap:8px;color:#f1d18f}.trade-drachi-beute .trade-good-image{width:30px;height:36px;object-fit:contain}.trade-drachi-explanation{margin-top:8px}.trade-drachi-explanation summary{cursor:pointer;font-size:12px;font-weight:600;color:#e9ca91}
.trade-acquire-blocked{display:block;margin-top:5px;font-size:11px!important;font-weight:700;line-height:1.45;color:#ffae95!important}
.trade-drachi-marker:is(.traveling,.returning) .trade-drachi-portrait{animation:trade-drachi-trot .5s ease-in-out infinite alternate}
@keyframes trade-drachi-trot{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-2px) rotate(2deg)}}
.trade-drachi-mark-token{display:grid;place-items:center;border:1px solid #d5e2b8;border-radius:8px;background:#abc5ab;color:#183b34;font-size:22px;font-weight:750}.trade-drachi-purchases-compact .trade-drachi-mark-token{flex:0 0 22px;width:22px;height:27px;border-radius:3px;font-size:17px}.trade-drachi-mark-purchase:disabled .trade-drachi-mark-token{filter:grayscale(1);opacity:.55}
@media(prefers-reduced-motion:reduce){.trade-drachi-marker:is(.traveling,.returning) .trade-drachi-portrait{animation:none}}
@media(max-width:520px){.trade-drachi-intro{gap:10px;align-items:flex-start}.trade-drachi-intro>img{width:64px;height:64px;flex-basis:64px}.trade-drachi-buy{align-items:stretch;flex-direction:column;gap:12px}.trade-drachi-buy button{width:100%}}
