/* =========================================================================
   Dev-Panel: Spieler-Inspektor (devinspect.js)
   ========================================================================= */

.dv-tabs .chip-toggle[data-view="insp"].on { border-color: #ff4d6a; background: linear-gradient(135deg, rgba(255, 77, 106, .18), rgba(255, 77, 106, .03)); box-shadow: 0 8px 24px -14px rgba(255, 77, 106, .9); }
.dv-tabs .chip-toggle[data-view="insp"].on b { color: #ff9aae; }

/* ---------- Suche ---------- */
.di-search { position: relative; margin-bottom: 16px; }
.di-search-row { display: flex; align-items: center; gap: 10px; }
.di-search-row .input { flex: 1; font-size: 1rem; padding: 12px 14px; }
.di-lens { font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(255, 77, 106, .5)); }
.di-results { display: grid; gap: 4px; margin-top: 8px; }
.di-results:empty { display: none; }
.di-res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
          color: var(--text); font: inherit; text-align: left; cursor: pointer; animation: diIn .25s ease both; }
.di-res:hover, .di-res:focus-visible { border-color: var(--cyan); background: rgba(47, 224, 228, .08); }
.di-res img, .di-res i, .di-chip img, .di-chip i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; background: rgba(255, 255, 255, .06); flex: none; }
.di-chip img, .di-chip i { width: 20px; height: 20px; font-size: .7rem; }
.di-res b { color: var(--text-bright); }
.di-res small { margin-left: auto; color: var(--text-dim); font-size: .72rem; font-family: var(--font-mono, monospace); }
.di-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.di-recent:empty { display: none; }
.di-recent small { color: var(--text-dim); font-size: .74rem; margin-right: 2px; }
.di-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
           color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; transition: border-color .15s, transform .15s; }
.di-chip:hover { border-color: var(--cyan); transform: translateY(-1px); }
.di-presets .di-chip { padding: 4px 10px; }
.di-none { color: var(--text-dim); font-size: .84rem; margin: 6px 0; }

.di-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--text-dim); }
.di-empty-ic { font-size: 3rem; margin-bottom: 10px; animation: diFloat 3s ease-in-out infinite; }
.di-empty b { display: block; color: var(--text-bright); font-size: 1.1rem; margin-bottom: 6px; }
.di-empty p { margin: 0 auto; max-width: 420px; }
.di-loading { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 60px 0; color: var(--text-dim); }
.di-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: diDot 1s ease-in-out infinite; }
.di-loading i:nth-child(2) { animation-delay: .15s; } .di-loading i:nth-child(3) { animation-delay: .3s; }
.di-loading span { margin-left: 8px; }

/* ---------- Kopf der Akte ---------- */
.di-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av who worth" "quick quick quick"; gap: 16px 20px; align-items: center;
           padding: 22px; border-radius: 20px; overflow: hidden; margin-bottom: 14px;
           background: radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
                       radial-gradient(60% 140% at 100% 100%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 60%), #0a0d1a;
           border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); }
.di-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
                   background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%) no-repeat; background-size: 250% 100%; animation: diSheen 6s ease-in-out infinite; }
.di-hero.in { animation: diPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.di-hero.in .di-tile { animation: diIn .4s ease both; }
.di-hero.in .di-tile:nth-child(2) { animation-delay: .06s; } .di-hero.in .di-tile:nth-child(3) { animation-delay: .12s; } .di-hero.in .di-tile:nth-child(4) { animation-delay: .18s; }
.di-avatar { grid-area: av; position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 3px; }
.di-avatar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), var(--c2), transparent 70%, var(--c1)); animation: diSpin 4s linear infinite; }
.di-avatar img, .di-avatar span { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #0a0d1a; font-size: 2rem; font-weight: 800; color: #fff; }
.di-avatar em { position: absolute; z-index: 1; right: -4px; bottom: -4px; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem;
                color: #0a0d1a; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 2px solid #0a0d1a; }
.di-who { grid-area: who; min-width: 0; }
.di-kicker { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono, monospace); }
.di-copy { border: 0; background: none; color: var(--text-dim); cursor: pointer; font-size: .9rem; padding: 0 4px; }
.di-copy:hover { color: var(--cyan); }
.di-who h2 { margin: 2px 0 2px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-sub { font-size: .84rem; color: var(--text); }
.di-xp { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin: 8px 0; max-width: 360px; overflow: hidden; }
.di-xp.big { height: 10px; max-width: none; margin: 0 0 6px; border-radius: 5px; }
.di-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1, var(--cyan)), var(--c2, var(--violet))); box-shadow: 0 0 12px var(--c1, var(--cyan)); transition: width .6s ease; }
.di-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.di-tag { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); }
.di-tag.gold { color: #ffd27a; border-color: rgba(245, 166, 35, .5); background: rgba(245, 166, 35, .1); }
.di-tag.red { color: #ff9aae; border-color: rgba(255, 77, 106, .5); background: rgba(255, 77, 106, .1); }
.di-tag.violet { color: #d4b3ff; border-color: rgba(168, 85, 247, .5); }
.di-tag.cyan { color: var(--cyan); border-color: rgba(47, 224, 228, .4); }
.di-worth { grid-area: worth; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px; }
.di-tile { position: relative; padding: 10px 12px 10px 40px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.di-tile span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.di-tile small { display: block; font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.di-tile b { font-size: 1.05rem; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.di-tile.coins b { color: var(--gold); }
.di-tile.total { border-color: rgba(47, 224, 228, .4); background: linear-gradient(135deg, rgba(47, 224, 228, .1), rgba(0, 0, 0, .3)); }
.di-tile.total b { color: var(--cyan); }
.di-quick { grid-area: quick; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.di-quick .btn.danger, .di-mbtns .btn.danger { color: #ff9aae; border-color: rgba(255, 77, 106, .5); }
.di-quick .btn.ok { color: var(--green); border-color: rgba(52, 224, 127, .5); }

/* ---------- Unter-Tabs ---------- */
.di-subs { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; margin-bottom: 14px;
           border-radius: 14px; background: #0a0d1a; box-shadow: 0 10px 20px -12px #000; border: 1px solid var(--line); }
.di-subs::-webkit-scrollbar { display: none; }
.di-subs button { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text-dim); font: inherit; font-size: .84rem; cursor: pointer; transition: background .15s, color .15s; }
.di-subs button:hover { color: var(--text-bright); background: rgba(255, 255, 255, .04); }
.di-subs button.on { color: var(--text-bright); background: linear-gradient(135deg, rgba(255, 77, 106, .2), rgba(168, 85, 247, .12)); border-color: rgba(255, 77, 106, .45); }
.di-subs em { font-style: normal; font-size: .68rem; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.di-view.swap { animation: diIn .3s ease both; }

/* ---------- Karten ---------- */
.di-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.di-grid.fit { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.di-card { padding: 14px; border-radius: 14px; background: var(--bg-panel); border: 1px solid var(--line); min-width: 0; margin-bottom: 12px; }
.di-grid .di-card { margin-bottom: 0; }
.di-card.wide { grid-column: 1 / -1; }
.di-card[role="button"] { cursor: pointer; transition: border-color .15s, transform .15s; }
.di-card[role="button"]:hover { border-color: rgba(47, 224, 228, .45); transform: translateY(-2px); }
.di-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; color: var(--text-bright); font-size: .92rem; }
.di-card-h small { font-weight: 400; color: var(--text-dim); font-size: .74rem; }
.di-card-h em { margin-left: auto; font-style: normal; color: var(--text-dim); transition: transform .15s; }
.di-card[role="button"]:hover .di-card-h em { transform: translateX(3px); color: var(--cyan); }
.di-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); font-size: .84rem; }
.di-kv:last-child { border-bottom: 0; }
.di-kv span { color: var(--text-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-kv b { color: var(--text-bright); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.di-kv small { color: var(--text-dim); font-weight: 400; }
.pos { color: var(--green); } .neg { color: var(--red); }
.di-hint { font-size: .74rem; color: var(--text-dim); margin: 8px 0 0; }
.di-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.di-mods div { display: grid; justify-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.di-mods b { font-size: 1.1rem; color: var(--text-bright); }
.di-mods small { font-size: .62rem; color: var(--text-dim); text-align: center; }
.di-active-pet { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.di-active-pet .pet-art-slot { width: 60px; height: 60px; }
.di-active-pet b { display: block; color: var(--text-bright); }
.di-active-pet small { color: var(--text-dim); font-size: .76rem; }
.pet-art-slot svg { width: 100%; height: 100%; display: block; }
.di-x { border: 0; background: none; color: var(--text-dim); cursor: pointer; font-size: .9rem; padding: 2px 6px; border-radius: 6px; }
.di-x:hover { color: #ff4d6a; background: rgba(255, 77, 106, .12); }

/* ---------- Werte bearbeiten ---------- */
.di-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); border-radius: 8px; transition: background .2s; }
.di-field label { grid-column: 1 / -1; font-size: .8rem; color: var(--text); display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-field .di-step { min-width: 0; }
.di-field .di-step .input { flex: 1; width: auto; min-width: 0; }
.di-field label small { color: var(--text-dim); font-size: .7rem; }
.di-step { display: flex; align-items: center; gap: 2px; }
.di-step .input { width: 110px; text-align: right; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.di-step button { flex: none; width: 28px; height: 30px; padding: 0; line-height: 1; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font: inherit; font-weight: 700; }
.di-step button:hover { border-color: var(--cyan); color: var(--cyan); }
.di-row .di-step button { width: auto; min-width: 28px; padding: 0 6px; font-size: .74rem; }
.di-save { opacity: .35; transition: opacity .2s, transform .2s; }
.dirty .di-save, .di-save:hover { opacity: 1; }
.dirty { background: rgba(245, 166, 35, .07); }
.dirty .di-save { color: #0a0d1a; background: var(--gold); border-color: var(--gold); animation: diPulse 1.2s ease-in-out infinite; }
.di-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.di-presets small { color: var(--text-dim); font-size: .74rem; }
.di-pion { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.di-pion-lv { text-align: center; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.di-pion-lv b { display: block; font-size: 1.8rem; font-family: var(--font-display); color: var(--cyan); line-height: 1; }
.di-pion-lv small { font-size: .72rem; color: var(--text-dim); }
.di-pion-bar small { color: var(--text-dim); font-size: .76rem; }
.di-inline { display: flex; gap: 6px; }
.di-inline .input { width: 130px; }

/* ---------- Formulare ---------- */
.di-give { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.di-give .input { flex: 1 1 140px; min-width: 0; }
.di-give .input[type="number"] { flex: 0 1 110px; }
.di-card .di-give { margin-top: 10px; }
.di-stack { display: grid; gap: 8px; }
.di-stack label, .di-row label { display: grid; gap: 3px; font-size: .74rem; color: var(--text-dim); }
.di-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.di-check { display: flex !important; flex-direction: row; align-items: center; gap: 6px; font-size: .82rem !important; color: var(--text) !important; cursor: pointer; }

/* ---------- Tabellen (Items, Planeten) ---------- */
.di-table { display: grid; gap: 4px; }
.di-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .2); transition: background .2s, opacity .3s, transform .3s; }
.di-row:hover { background: rgba(255, 255, 255, .04); }
.di-row.gone { opacity: 0; transform: translateX(30px); }
.di-row.di-pl { grid-template-columns: minmax(160px, 1fr) 80px 100px auto auto auto; }
.di-row.di-pl.arch { opacity: .55; }
.di-iname { color: var(--text-bright); font-size: .86rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-iname small { color: var(--text-dim); }
.di-pe { margin-right: 6px; }
.di-ival { color: var(--gold); font-size: .78rem; font-variant-numeric: tabular-nums; }
.di-row .di-step .input { width: 96px; }

/* ---------- Pets ---------- */
.di-pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.di-pet { --rc: var(--r-common); position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 8px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
          background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%), rgba(0, 0, 0, .25); color: var(--text); font: inherit; cursor: pointer; overflow: hidden;
          transition: transform .2s, box-shadow .2s; animation: diIn .35s ease both; }
.di-pet:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -14px var(--rc); }
.di-pet .pet-art-slot { width: 84px; height: 84px; transition: transform .25s; }
.di-pet:hover .pet-art-slot { transform: scale(1.08) rotate(-3deg); }
.di-pet b { font-size: .82rem; color: var(--text-bright); text-align: center; line-height: 1.2; }
.di-pet small { font-size: .7rem; color: var(--text-dim); }
.di-pet em { position: absolute; top: 6px; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: 1px; padding: 2px 6px; border-radius: 999px; }
.di-pet em.act { left: 6px; color: #0a0d1a; background: var(--cyan); }
.di-pet em.mis { right: 6px; color: #0a0d1a; background: var(--gold); }
.di-pet.active { box-shadow: 0 0 0 2px var(--cyan) inset; }
.di-pet.shiny::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); background-size: 250% 100%; animation: diSheen 3s ease-in-out infinite; }
.di-mood { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.di-mood::before { content: ''; display: block; height: 100%; width: var(--m); border-radius: inherit; background: linear-gradient(90deg, #ff4d6a, #f5a623, #34e07f); background-size: 300% 100%; background-position: calc(100% - var(--m)) 0; }
.r-rare { --rc: var(--r-rare); } .r-epic { --rc: var(--r-epic); } .r-legendary { --rc: #f5c542; } .r-mystic { --rc: #ff6ad5; } .r-veteran { --rc: #2fe0e4; }
.di-eggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.di-egg { position: relative; display: grid; justify-items: center; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); text-align: center; }
.di-egg .egg-art-slot { width: 48px; height: 56px; }
.di-egg .egg-art-slot svg { width: 100%; height: 100%; }
.di-egg b { font-size: .74rem; color: var(--text-bright); }
.di-egg small { font-size: .64rem; color: var(--text-dim); }
.di-egg .di-x { position: absolute; top: 2px; right: 2px; }

/* ---------- Pet-Fenster ---------- */
.di-modal { --rc: var(--r-common); text-align: left; }
.di-mart { width: 140px; height: 140px; margin: -6px auto 4px; filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--rc) 60%, transparent)); animation: diFloat 3s ease-in-out infinite; }
.di-modal h3 { text-align: center; margin: 0; color: #fff; font-family: var(--font-display); }
.di-msub { text-align: center; margin: 2px 0 12px; color: var(--rc); font-size: .82rem; }
.di-modal .di-stack { margin-top: 12px; }
.di-mbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: flex-end; }

/* ---------- Verlauf ---------- */
.di-flow { display: grid; grid-template-columns: minmax(110px, 1fr) 1.2fr auto; gap: 8px; align-items: center; font-size: .78rem; padding: 4px 0; }
.di-flow > span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-flow div { display: grid; gap: 2px; }
.di-flow i { display: block; height: 5px; border-radius: 3px; min-width: 2px; }
.di-flow i.in { background: var(--green); } .di-flow i.out { background: var(--red); }
.di-flow small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.di-log { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.di-le { display: grid; grid-template-columns: 112px 1fr auto auto; gap: 10px; align-items: baseline; padding: 5px 6px; border-radius: 8px; font-size: .8rem; }
.di-le:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.di-le time { color: var(--text-dim); font-size: .72rem; font-variant-numeric: tabular-nums; }
.di-le span { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.di-le small { color: var(--text-dim); font-size: .72rem; font-variant-numeric: tabular-nums; }
.di-le b { font-variant-numeric: tabular-nums; }
.di-le.bad span { color: #ff9aae; }
.di-card .di-log .di-le { grid-template-columns: 100px 1fr; }
.di-card .di-log .di-le small { grid-column: 2; white-space: normal; }
.di-card.wide .di-log .di-le { grid-template-columns: 112px 1fr auto 110px; }
.di-card.wide .di-log .di-le small { grid-column: auto; text-align: right; }
.di-ach { display: flex; flex-wrap: wrap; gap: 6px; }
.di-ach span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 1.05rem; cursor: help; transition: transform .15s; }
.di-ach span:hover { transform: scale(1.15); }
.di-ach .t-silber { border-color: #c0c8d8; } .di-ach .t-gold { border-color: #f5c542; } .di-ach .t-platin { border-color: #7ff3ff; box-shadow: 0 0 10px -2px #7ff3ff; } .di-ach .t-bronze { border-color: #cd7f32; }

/* ---------- Animationen ---------- */
@keyframes diIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes diPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes diSheen { 0%, 100% { background-position: 150% 0; } 50% { background-position: -50% 0; } }
@keyframes diSpin { to { transform: rotate(360deg); } }
@keyframes diFloat { 50% { transform: translateY(-6px); } }
@keyframes diDot { 50% { transform: translateY(-8px); opacity: .4; } }
@keyframes diPulse { 50% { box-shadow: 0 0 0 4px rgba(245, 166, 35, .25); } }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .di-hero { grid-template-columns: auto 1fr; grid-template-areas: "av who" "worth worth" "quick quick"; padding: 16px; }
  .di-avatar { width: 64px; height: 64px; }
  .di-row { grid-template-columns: 1fr auto; }
  .di-row .di-ival { display: none; }
  .di-row .di-step { grid-column: 1; }
  .di-row.di-pl { grid-template-columns: 1fr 1fr; }
  .di-row.di-pl .di-iname { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .di-worth { grid-template-columns: 1fr 1fr; }
  .di-field { grid-template-columns: 1fr auto; }
  .di-field label { grid-column: 1 / -1; }
  .di-pion { grid-template-columns: 1fr; }
  .di-le, .di-card.wide .di-log .di-le { grid-template-columns: 1fr auto; }
  .di-le time { grid-column: 1 / -1; }
  .di-card.wide .di-log .di-le small { display: none; }
  .di-mods { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .di-hero::before, .di-avatar::before, .di-pet.shiny::after, .di-mart, .di-empty-ic, .dirty .di-save { animation: none !important; }
}

/* ---------------------------------------------------------- Handels-Radar */
#dev-trade .panel { margin-top: 14px; }
#dev-trade .panel-title { display: flex; align-items: center; gap: 8px; }
.dt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dt-stats > div { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.dt-stats b { display: block; font-size: 1.25rem; }
.dt-stats small { color: var(--text-dim); font-size: .78rem; }
.dt-flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; background: rgba(255,200,60,.08); border: 1px solid rgba(255,200,60,.25); }
.dt-flag.high { background: rgba(255,80,90,.09); border-color: rgba(255,80,90,.35); }
.dt-flag > span { font-size: 1.2rem; }
.dt-flag > div:first-of-type { flex: 1; min-width: 0; }
.dt-flag .btn { margin-top: 6px; }
.dt-who { display: flex; gap: 4px; }
.dt-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; }
.dt-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.dt-row.rev { opacity: .5; }
.dt-k { font-size: .78rem; white-space: nowrap; color: var(--text-dim); min-width: 88px; }
.dt-main { flex: 1; min-width: 0; }
.dt-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-main small { color: var(--text-dim); font-size: .76rem; }
.dt-sum { text-align: right; font-weight: 700; white-space: nowrap; }
.dt-sum small { display: block; font-weight: 400; color: var(--text-dim); font-size: .72rem; }
.dt-tag { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); }
.dt-user { background: none; border: 0; color: var(--cyan); padding: 0; cursor: pointer; font: inherit; }
.dt-user:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .dt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dt-k { min-width: 0; font-size: 0; }
    .dt-k::first-letter { font-size: 1rem; }
    .dt-row { flex-wrap: wrap; }
    .dt-main { flex-basis: calc(100% - 90px); }
}
.di-tag.green { color: #8ef5b6; border-color: rgba(52, 224, 127, .45); background: rgba(52, 224, 127, .08); }
