/* ==========================================================================
   Atelier (index.php?page=atelier) : builds, panoplies, fabrication
   Thème « braise & or » du site (jetons de style.css)
   ========================================================================== */
.at-hero { padding-bottom: 18px; }
.at { padding-top: 10px; }
.at-wrap { display: grid; gap: 20px; }
.at h2 { font-size: 1.25rem; margin: 0 0 4px; }
.at h3 { margin: 0; }
.at h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.at .small { font-size: .82rem; }
.at-noscroll { overflow: hidden; }

/* Onglets numérotés ------------------------------------------------------ */
.at-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.at-tabs button {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; cursor: pointer; color: var(--text);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: inherit;
    transition: border-color .2s, background .2s, transform .2s;
}
.at-tabs button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.at-tabs button[aria-selected="true"] { border-color: rgba(255, 138, 61, .7); background: linear-gradient(135deg, rgba(255, 106, 43, .16), rgba(255, 181, 71, .06)); box-shadow: var(--glow); }
.at-tab-ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #1a0b03; background: var(--grad); }
.at-tabs button[aria-selected="false"] .at-tab-ico { background: var(--surface-2); color: var(--gold); }
.at-tabs b { display: block; font-size: 1.02rem; }
.at-tabs small { display: block; color: var(--muted); font-size: .82rem; }

.at-loading { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 40px; }
.at-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ember-2); animation: at-spin 1s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }
.at-panel { display: grid; gap: 20px; }
.at-panel[hidden] { display: none; }

/* Builds préfaits -------------------------------------------------------- */
.at-presets { padding: 20px 22px; }
.at-presets-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.at-presets-head p { margin: 0; }
.at-sub { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.at-preset-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.at-preset { position: relative; flex: 0 0 auto; }
.at-preset-main { display: flex; align-items: center; gap: 10px; padding: 9px 30px 9px 9px; min-width: 210px; cursor: pointer; text-align: left; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.at-preset-main:hover { border-color: rgba(255, 138, 61, .6); background: rgba(255, 106, 43, .1); }
.at-preset-main img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: rgba(255, 236, 220, .06); }
.at-preset-main b { display: block; font-size: .92rem; }
.at-preset-main small { color: var(--muted); font-size: .76rem; }
.at-preset-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: transparent; color: var(--muted); font-size: 1rem; line-height: 1; }
.at-preset-del:hover { color: #ffb0b0; background: rgba(255, 93, 93, .15); }

/* Builder : trois colonnes ----------------------------------------------- */
.at-build { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.at-build > .card { padding: 20px; }
.at-h { font-size: 1.05rem; margin-bottom: 14px !important; }
.at-side, .at-stats { position: sticky; top: calc(var(--header-h) + 12px); }
.at-classes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.at-cls { aspect-ratio: 1; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.at-cls img { width: 82%; height: 82%; object-fit: contain; filter: saturate(.6) brightness(.85); }
.at-cls:hover img, .at-cls.on img { filter: none; }
.at-cls.on { border-color: rgba(255, 138, 61, .8); background: rgba(255, 106, 43, .16); }
.at-field { display: grid; gap: 6px; margin-bottom: 14px; }
.at-field > span { font-size: .82rem; color: var(--text-2); display: flex; justify-content: space-between; }
.at-field input[type=range] { accent-color: #ff8a3d; width: 100%; }
.at-field select, .at-field input[type=text] { width: 100%; }
.at-seg { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.at-seg button { flex: 1; padding: 8px 10px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--text-2); font: 600 .84rem var(--font); }
.at-seg button.on { background: var(--grad); color: #1a0b03; }

.at-caracs { border-top: 1px solid var(--line); padding-top: 12px; }
.at-caracs summary, .at-more summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.at-caracs summary::-webkit-details-marker, .at-more summary::-webkit-details-marker, .at-fold summary::-webkit-details-marker { display: none; }
.at-caracs summary::after, .at-more summary::after { content: '▾'; color: var(--muted); margin-left: 8px; transition: transform .2s; }
.at-caracs[open] summary::after, .at-more[open] summary::after { transform: rotate(180deg); }
.at-caracs summary b { font-size: .82rem; color: var(--gold-2); margin-left: auto; }
.at-caracs summary b.over { color: #ff8a8a; }
.at-cap { margin: 12px 0 8px; }
.at-cap-bar { height: 6px; border-radius: 6px; background: rgba(255, 236, 220, .1); overflow: hidden; }
.at-cap-bar i { display: block; height: 100%; background: var(--grad); }
.at-cap small { color: var(--muted); font-size: .76rem; }
.at-ctable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.at-ctable th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left; padding: 4px; }
.at-ctable td { padding: 3px 4px; }
.at-ctable input { width: 100%; padding: 6px 8px; font-size: .86rem; }
.at-row2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }

/* Pastilles de couleur des caractéristiques */
.at-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.at-dot.vita { background: #ff5d7a; } .at-dot.sag { background: #b48cff; } .at-dot.for, .at-dot.el-terre { background: #c9a06a; }
.at-dot.int, .at-dot.el-feu { background: #ff7a3d; } .at-dot.cha, .at-dot.el-eau { background: #4fb6ff; } .at-dot.agi, .at-dot.el-air { background: #5ee08a; }
.at-dot.el-neutre { background: #a7a29d; }

/* Équipement */
.at-gear-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.at-gear-head .at-h { margin-bottom: 2px !important; }
.at-gear-actions { display: flex; gap: 6px; }
.at-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.at-chip { text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.at-chip b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.at-chip span { font-size: .7rem; letter-spacing: .12em; color: var(--muted); }
.at-chip.pv b { color: #ff7a93; } .at-chip.pa b { color: #6cb6ff; } .at-chip.pm b { color: #5ee08a; } .at-chip.po b { color: var(--gold-2); }
.at-doll { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.at-col { display: grid; gap: 8px; }
.at-row { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.at-slot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 14px; color: var(--muted);
    background: rgba(255, 236, 220, .03); border: 1px dashed var(--line-2); transition: border-color .2s, background .2s, transform .15s; }
.at-slot:hover { border-color: rgba(255, 138, 61, .7); transform: translateY(-1px); }
.at-slot.on { border: 1px solid rgba(255, 193, 90, .55); background: radial-gradient(circle at 50% 40%, #fffaf0 0%, #f1e6d2 70%, #e2d2b4 100%); }
.at-slot img { max-width: 80%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(60, 30, 10, .35)); }
.at-slot-lbl { font-size: .58rem; line-height: 1.1; text-align: center; padding: 2px; }
.at-slot-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; display: none; place-items: center; border-radius: 50%; background: #2a1810; border: 1px solid var(--line-2); color: #ffb0b0; font-size: .9rem; line-height: 1; }
.at-slot.on:hover .at-slot-x { display: grid; }
.at-hero-stage { position: relative; height: 300px; display: grid; place-items: end center; isolation: isolate; }
.at-hero-stage img { position: relative; z-index: 1; max-height: 260px; max-width: 100%; margin-bottom: 18px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.at-aura { position: absolute; left: 50%; bottom: 16px; width: 80%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 43, .4), transparent); filter: blur(6px); }
.at-socle { position: absolute; left: 50%; bottom: 6px; width: 64%; height: 24px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #2a140b 55%, transparent);
    box-shadow: 0 0 0 1px rgba(255, 138, 61, .35), 0 0 24px rgba(255, 90, 31, .6), inset 0 -6px 14px rgba(255, 90, 31, .5); }
.at-hint { text-align: center; margin: 12px 0; }
.at-sets-active { margin-top: 14px; border-top: 1px solid var(--line); }
.at-setline { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.at-setline:last-child { border-bottom: 0; }

/* Caractéristiques */
.at-carac-big { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.at-carac-big li { display: flex; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--surface); }
.at-carac-big li b { margin-left: auto; font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.at-kv { list-style: none; margin: 0; padding: 0; }
.at-kv li { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.at-kv li:last-child { border-bottom: 0; }
.at-kv span { color: var(--text-2); }
.at-kv b { font-variant-numeric: tabular-nums; }
.at-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.at-res { width: 100%; border-collapse: collapse; font-size: .88rem; }
.at-res th { font-size: .68rem; letter-spacing: .1em; color: var(--muted); text-align: right; font-weight: 600; padding: 4px; }
.at-res td { padding: 5px 4px; text-align: right; font-variant-numeric: tabular-nums; }
.at-res td:first-child, .at-res th:first-child { text-align: left; }
.at-other { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--text-2); }

/* Infobulle, fenêtre, message ------------------------------------------- */
.at-tip { position: fixed; z-index: 2000; width: 300px; padding: 14px; border-radius: 14px; pointer-events: none;
    background: #1a120d; border: 1px solid rgba(255, 181, 71, .35); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8); font-size: .86rem; }
.at-tip-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.at-tip-ico { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); padding: 3px; }
.at-tip-head b { display: block; color: var(--gold-2); }
.at-tip-head small { color: var(--muted); }
.at-tip ul { list-style: none; margin: 0; padding: 0; }
.at-tip li { padding: 2px 0; color: #9df5bd; }
.at-tip li.neg { color: #ffb0b0; }
.at-tip li.wpn { color: var(--text-2); }
.at-tip-set { margin: 8px 0 0; color: var(--gold); font-size: .8rem; }
.at-tip-cond { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.at-modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 2, .7); backdrop-filter: blur(4px); }
.at-modal[hidden] { display: none; }
.at-modal-box { width: min(640px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; padding: 0; background: #17100c; }
.at-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.at-modal-body { padding: 16px 20px 20px; overflow: auto; }
.at-x { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface-2); color: var(--text); font-size: 1.2rem; line-height: 1; }
.at-x:hover { background: rgba(255, 93, 93, .2); }
.at-toast { position: fixed; z-index: 2100; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: #1d140e; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; }
.at-toast.ok { border-color: rgba(74, 222, 128, .5); }
.at-toast.err { border-color: rgba(255, 93, 93, .55); color: #ffb0b0; }
.at-check { display: flex; gap: 8px; align-items: center; margin: 10px 0; cursor: pointer; }
.at-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Recherche d'objet */
.at-pick-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.at-pick-q { flex: 1; min-width: 180px; }
.at-pick-lvl { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.at-pick-lvl input { width: 70px; padding: 8px; }
.at-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.at-pick-list button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 8px 10px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.at-pick-list button:hover { border-color: rgba(255, 138, 61, .6); background: rgba(255, 106, 43, .1); }
.at-pick-ico { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border-radius: 10px; padding: 3px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); }
.at-pick-list b { display: block; }
.at-pick-list small { display: block; color: var(--muted); font-size: .78rem; }
.at-pick-list em { display: block; font-style: normal; color: #9df5bd; font-size: .78rem; margin-top: 2px; }
.at-empty-li { padding: 20px; text-align: center; color: var(--muted); }
.at-noimg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }

/* Panoplies -------------------------------------------------------------- */
.at-sets-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; padding: 20px 22px; }
.at-sets-head p { margin: 0; max-width: 560px; }
.at-sets-q { width: min(340px, 100%); }
.at-count { margin: 0; }
.at-sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.at-set { display: grid; gap: 10px; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit; color: var(--text); transition: border-color .2s, transform .2s; }
.at-set:hover { border-color: rgba(255, 138, 61, .55); transform: translateY(-2px); }
.at-set-head b { display: block; }
.at-set-head small { color: var(--muted); font-size: .78rem; }
.at-set-icons { display: flex; flex-wrap: wrap; gap: 5px; }
.at-set-icons span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); }
.at-set-icons img { max-width: 82%; max-height: 82%; object-fit: contain; }
.at-setd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.at-setd-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.at-setd-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; padding: 3px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); }
.at-setd-item b { display: block; font-size: .88rem; }
.at-setd-item small { color: var(--muted); font-size: .76rem; }
.at-setd-steps { display: grid; gap: 6px; margin-bottom: 16px; }
.at-step { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: .86rem; }
.at-step b { color: var(--gold-2); }

/* Fabriquer : trois étapes ---------------------------------------------- */
.at-step-card { padding: 20px 22px; }
.at-step-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.at-step-title > div { flex: 1; }
.at-step-title p { margin: 2px 0 0; }
.at-num { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-family: var(--font-display); font-weight: 800; color: #1a0b03; background: var(--grad); }
.at-mode { max-width: 460px; margin-bottom: 12px; }
.at-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.at-target { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.at-target img { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; padding: 3px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); flex-shrink: 0; }
.at-target > span { flex: 1; min-width: 0; }
.at-target b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-target small { color: var(--muted); font-size: .76rem; }
.at-target input { width: 64px; padding: 6px 8px; }
.at-mult { color: var(--gold-2); }
.at-copies { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); margin-left: auto; }
.at-copies input { width: 70px; padding: 6px 8px; }
.at-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.at-source { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.at-source input { accent-color: #ff8a3d; width: 16px; height: 16px; }
.at-source.on { border-color: rgba(255, 138, 61, .6); background: rgba(255, 106, 43, .1); }
.at-src-ico { font-size: 1.2rem; }
.at-source b { display: block; font-size: .9rem; }
.at-source small { color: var(--muted); font-size: .76rem; }
.at-src-foot { margin: 10px 0 0; }
.at-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.at-progress-bar { flex: 1 1 240px; height: 10px; border-radius: 10px; background: rgba(255, 236, 220, .1); overflow: hidden; }
.at-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #9df5bd); transition: width .3s; }
.at-progress .at-check { margin: 0; }
.at-shop { display: grid; gap: 4px; }
.at-shop-group h4 { margin-top: 12px; }
.at-shop-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 90px 150px 44px; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--surface); margin-bottom: 4px; }
.at-shop-row.done { opacity: .55; }
.at-shop-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.at-shop-item img, .at-shop-item .at-noimg { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; padding: 2px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); flex-shrink: 0; }
.at-shop-item b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-shop-need { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.at-shop-need::before { content: 'requis '; color: var(--muted); font-size: .72rem; }
.at-shop-row input { padding: 5px 8px; text-align: right; }
.at-shop-row input.manual { border-color: rgba(255, 181, 71, .6); }
.at-shop-miss { font-size: .86rem; color: #ffb0b0; }
.at-ok { color: #4ade80; font-weight: 700; }
.at-fold summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.at-fold summary::after { content: '▾'; color: var(--muted); margin-left: auto; }
.at-fold[open] summary { margin-bottom: 8px; }
.at-job h4 { color: var(--gold-2); letter-spacing: .04em; text-transform: none; font-size: .95rem; }
.at-job-row { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; }
.at-job-row:hover { background: var(--surface); }
.at-job-row img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; padding: 2px; background: radial-gradient(circle at 50% 40%, #fffaf0, #e2d2b4); }
.at-job-row span { flex: 1; }
.at-job-row b { color: var(--gold-2); }
.at-note { margin: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
    .at-build { grid-template-columns: 270px minmax(0, 1fr); }
    .at-stats { grid-column: 1 / -1; position: static; }
}
@media (max-width: 900px) {
    .at-build { grid-template-columns: 1fr; }
    .at-side { position: static; }
    .at-tabs small { display: none; }
}
@media (max-width: 640px) {
    .at-tabs { grid-template-columns: 1fr; }
    .at-slot { width: 46px; height: 46px; border-radius: 12px; }
    .at-hero-stage { height: 230px; }
    .at-hero-stage img { max-height: 200px; }
    .at-shop-row { grid-template-columns: minmax(0, 1fr) 80px; }
    .at-shop-need, .at-shop-row > :last-child { display: none; }
    .at-shop-miss { grid-column: 1 / -1; }
}
.at-loading[hidden] { display: none; }

/* Quantité de chaque objet à fabriquer */
.at-qty { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--gold-2); font-weight: 700; }
.at-qty input { width: 64px; padding: 6px 8px; text-align: center; }
.at-total { flex-shrink: 0; color: var(--muted); font-size: .78rem; }
.at-target:has(input[value="0"]) { opacity: .5; }
