.auction-house { --ah-gold:#e5bf79; color:var(--text,#f4f1e8); min-width:0; }
.ah-ribbon { padding:14px 16px; margin-block:12px; border:1px solid #e5bf7947; border-radius:10px; background:#0d111a; color:var(--text,#f4f1e8); min-width:0; }
.ah-ribbon-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; font-size:.84rem; }
.ah-ribbon a { color:inherit; text-decoration:none; }
.ah-ribbon-all { display:inline-flex; align-items:center; min-height:44px; color:#e5bf79!important; font-size:.75rem; }
.ah-ribbon-items { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.ah-ribbon-item { display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:72px; padding:9px; border:1px solid #ffffff1c; border-radius:6px; font-size:.76rem; overflow-wrap:anywhere; }
.ah-ribbon-item:hover,.ah-ribbon-item:focus-visible { border-color:#e5bf79; background:#e5bf7910; outline:2px solid transparent; }
.ah-ribbon-item small { color:#a8b0c2; font-size:.68rem; }
.ah-ribbon-item strong { color:#e5bf79; }
.ah-ribbon-items>.ah-note { grid-column:1/-1; margin:4px 0; }
@media(max-width:700px) { .ah-ribbon-items { grid-template-columns:repeat(2,minmax(0,1fr)); } .ah-ribbon-item:last-child { grid-column:1/-1; } }
@media(max-width:380px) { .ah-ribbon { padding:10px; } }
.auction-house [hidden] { display:none!important; }
.ah-disclosure { margin-block:1rem; border:1px solid #e5bf7947; background:linear-gradient(125deg,#e5bf790c,transparent 45%),#0d111a; }
.ah-disclosure > summary { min-height:52px; box-sizing:border-box; padding:1rem; cursor:pointer; color:var(--ah-gold); font-weight:800; }
.ah-disclosure > summary small { display:inline-block; margin-left:.8rem; color:var(--muted,#a6afbf); font-size:.7rem; font-weight:400; }
.ah-body { display:grid; gap:1rem; padding:0 1rem 1rem; }
.ah-body p { margin:0; }
.ah-note,.ah-meta { font-size:.76rem; line-height:1.6; color:var(--muted,#a6afbf); overflow-wrap:anywhere; }
.ah-tools,.ah-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; }
.ah-tools > strong { color:var(--ah-gold); font-size:1rem; overflow-wrap:anywhere; }
.auction-house button { min-height:44px; max-width:100%; padding:.65rem .85rem; white-space:normal; font:inherit; font-size:.77rem; font-weight:700; cursor:pointer; }
.auction-house button:disabled { opacity:.45; cursor:not-allowed; }
.ah-primary { color:#17130c; background:var(--ah-gold); border:1px solid var(--ah-gold); }
.auction-house .ah-primary .dgen-usd-estimate { color:inherit; font-weight:inherit; }
.ah-secondary { color:var(--ah-gold); background:#e5bf7908; border:1px solid #e5bf795e; }
.auction-house :is(button,summary,input,select):focus-visible { outline:2px solid var(--ah-gold); outline-offset:3px; }
.ah-status { padding:.7rem .8rem; border-left:3px solid #8290ab; background:#ffffff04; font-size:.77rem; line-height:1.5; overflow-wrap:anywhere; }
.ah-status[data-state="warning"],.ah-status[data-state="error"] { color:#ffe0a0; border-color:#e5bf79; }
.ah-status[data-state="verified"] { border-color:#80c298; }
.ah-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:.8rem; }
.ah-card { display:flex; flex-direction:column; gap:.55rem; min-width:0; padding:1rem; border:1px solid #c3af8128; background:#080c12a6; }
.ah-card h4 { margin:0; font:700 1rem/1.35 var(--heading,Georgia,serif); overflow-wrap:anywhere; }
.ah-card-top { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:.4rem; }
.ah-kind { color:var(--ah-gold); font-size:.63rem; text-transform:uppercase; letter-spacing:.08em; }
.ah-price { color:var(--ah-gold); font-size:.94rem; overflow-wrap:anywhere; }
.ah-card button { margin-top:auto; width:100%; }
.ah-section { border-top:1px solid #e5bf792e; padding-top:.4rem; }
.ah-section > summary { padding:.75rem 0; cursor:pointer; font-weight:700; color:var(--ah-gold); }
.ah-section[open] > summary { margin-bottom:.5rem; }
.ah-listing-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.7rem; }
.ah-listing-filters button[aria-pressed="true"] { color:#17130c; background:var(--ah-gold); border-color:var(--ah-gold); }
.ah-section > [data-auction="mineSummary"] { margin-bottom:.8rem; }
.ah-sell-form,.ah-settings { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto; align-items:end; gap:.8rem; margin-block:.9rem; }
.ah-field { display:grid; gap:.4rem; min-width:0; color:var(--muted,#a6afbf); font-size:.73rem; }
.ah-field :is(input,select) { min-width:0; width:100%; min-height:44px; box-sizing:border-box; padding:.6rem; border:1px solid #e5bf7945; color:#f4f1e8; background:#0a0f17; font:inherit; }
.ah-field select { text-overflow:ellipsis; }
.ah-recovery { padding:1rem; display:grid; gap:.7rem; border:1px solid #e5bf7975; background:#e5bf790b; }
.ah-recovery p { font-size:.76rem; line-height:1.6; overflow-wrap:anywhere; }
.ah-dialog { box-sizing:border-box; width:min(40rem,calc(100vw - 2rem)); max-height:85dvh; padding:1.5rem; overflow:auto; color:#f4f1e8; background:#0c111b; border:1px solid #e5bf79; }
.ah-dialog::backdrop { background:#03060bdb; }
.ah-dialog h3 { margin:0 0 1rem; color:var(--ah-gold); font-family:var(--heading,Georgia,serif); }
.ah-dialog .ah-actions { justify-content:flex-end; margin-top:1.25rem; }
.ah-review { display:grid; gap:.7rem; margin:1rem 0; }
.ah-review > div { display:grid; grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr); gap:.6rem; padding-bottom:.65rem; border-bottom:1px solid #ffffff14; }
.ah-review dt { color:#a6afbf; font-size:.75rem; }
.ah-review dd { margin:0; font-size:.8rem; line-height:1.5; overflow-wrap:anywhere; }
.ah-history:empty { display:none; }
.ah-history { display:grid; gap:.6rem; list-style:none; margin:0; padding:0; }
.ah-history li { padding:.7rem; border:1px solid #ffffff16; font-size:.7rem; line-height:1.6; color:var(--muted,#a6afbf); overflow-wrap:anywhere; }
@media(max-width:600px) {
  .ah-disclosure > summary small { display:block; margin:.35rem 0 0; }
  .ah-sell-form,.ah-settings { grid-template-columns:minmax(0,1fr); }
  .ah-tools > button,.ah-actions > button { flex:1 1 100%; }
  .ah-dialog { padding:1rem; }
  .ah-review > div { grid-template-columns:minmax(0,1fr); gap:.25rem; }
}
