/* catalog: phone list 1-col; opened pet/hero/expert tables match desktop */
@media (max-width: 719px) {
  .unit-grid { grid-template-columns: 1fr !important; }
  .unit-card .chips { display: flex !important; flex-wrap: wrap; }
  .unit-card .sub { display: block !important; }
}
.data-detail .html-body > .pet-detail-page ~ * { display: none !important; }
.html-body:has(> .pet-detail-page) > .container,
.html-body:has(> .pet-profile-card) > .container,
.html-body:has(> .hero-profile-card) > .container,
.html-body:has(> .equipment-profile) > .container { display: none !important; }
.html-body .pet-detail-actions, .html-body .hero-detail-actions { display: none !important; }
.data-detail .html-body .pet-upgrade-table-wrap,
.data-detail .html-body .hero-table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.data-detail .html-body table,
.data-detail .html-body .pet-upgrade-table {
  display: table !important;
  width: max-content;
  min-width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  max-width: none !important;
}
.data-detail .html-body table thead { display: table-header-group !important; }
.data-detail .html-body table tbody { display: table-row-group !important; }
.data-detail .html-body table tr {
  display: table-row !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  gap: 0 !important;
}
.data-detail .html-body table th,
.data-detail .html-body table td {
  display: table-cell !important;
  width: auto !important;
  min-width: 48px;
  max-width: none !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  background: #fff !important;
  white-space: nowrap;
  vertical-align: middle;
}
.data-detail .html-body table td[data-label]::before { content: none !important; display: none !important; }
.data-detail .html-body .pet-effect-row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
}
.data-detail .html-body .pet-effect-values {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
}
.data-detail .html-body .pet-skill-main {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
}
.data-detail .html-body .pet-skill-main > div { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .html-body .pet-detail-layout { display: block !important; grid-template-columns: none !important; }
  .html-body .pet-side { display: none !important; }
  .data-detail .html-body .pet-upgrade-table-wrap { max-width: 100% !important; }
}
.data-detail .html-body table img,
.data-detail .html-body .pet-upgrade-table img {
  max-width: 28px !important;
  max-height: 28px !important;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.data-detail .html-body .js-pet-material-cell { white-space: nowrap; }

.cal-st{font-size:11px;font-style:normal;margin-left:6px;padding:1px 6px;border-radius:999px;background:#e2e8f0;color:#334155}
.cal-st.on{background:#dcfce7;color:#166534}
.cal-st.off{background:#f1f5f9;color:#64748b}

/* equipment: desktop tables on phone, hide scrape duplicate */
.html-body > .container:has(.equipment-table),.html-body.eq-html > .container,.html-body #sec-tabs,.html-body .equipment-detail-actions,.html-body .equipment-side{display:none !important}
.html-body .equipment-table-wrap{display:block !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch;max-width:100%}
.html-body .equipment-table,.html-body .equipment-table-wrap>table{display:table !important;width:max-content !important;min-width:100%;border-collapse:collapse !important;border-spacing:0 !important;max-width:none !important}
.html-body .equipment-table thead{display:table-header-group !important}
.html-body .equipment-table tbody{display:table-row-group !important}
.html-body .equipment-table tr{display:table-row !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;gap:0 !important;grid-template-columns:none !important}
.html-body .equipment-table th,.html-body .equipment-table td{display:table-cell !important;width:auto !important;min-width:48px;max-width:none !important;padding:8px 10px !important;border:1px solid rgba(15,23,42,.08) !important;background:#fff !important;white-space:nowrap;vertical-align:middle}
.html-body .equipment-table td[data-label]::before{content:none !important;display:none !important}
.html-body .equipment-table img{max-width:28px !important;max-height:28px !important;width:28px !important;height:28px !important;object-fit:contain;display:inline-block;vertical-align:middle}
@media (max-width:720px){.html-body .equipment-detail-layout{display:block !important;grid-template-columns:none !important}.page>.equipment-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.page>.equipment-tabs .equipment-tab{flex:1 1 calc(50% - 8px)}}
.code-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;margin:0 0 8px;padding:12px 14px;border:1px solid rgba(15,23,42,.08);border-left:4px solid #5b9fe6;border-radius:14px;background:#fff}
.code-card b{font-size:18px;color:#0f172a;letter-spacing:.02em}
.code-card .muted{font-size:13px;color:#475569}
.code-expire{font-size:12px;color:#64748b;margin-top:4px}
.code-card.expired{opacity:.5}
.code-hint{font-size:13px;color:#475569;margin:0 0 10px}
.cal-gantt-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;margin:0 0 14px}
.cal-gantt-head,.cal-gantt-row{display:flex;align-items:stretch}
.cal-gantt-cat{width:108px;flex:0 0 108px;padding:8px 10px;font-size:13px;font-weight:750;color:#1e3a5f;background:#f4f8ff;border-right:1px solid rgba(15,23,42,.06)}
.cal-gantt-d{width:92px;flex:0 0 92px;text-align:center;padding:6px 0;font-size:12px;color:#334155;border-left:1px solid rgba(15,23,42,.05)}
.cal-gantt-d span{display:block;font-weight:700}
.cal-gantt-d em{font-style:normal;color:#64748b;font-size:11px}
.cal-gantt-d.on{background:#e8f2ff;color:#1d4e89}
.cal-gantt-lane{position:relative;flex:1;min-width:0}
.cal-gantt-bar{position:absolute;height:28px;border-radius:999px;color:#fff;font-size:12px;font-weight:700;line-height:28px;padding:0 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-shadow:0 1px 2px rgba(15,23,42,.12)}
.xt-pop-mask{position:fixed;inset:0;z-index:80;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:16px}
.xt-pop{background:#fff;border-radius:18px;max-width:440px;width:100%;padding:20px;color:#0f172a;box-shadow:0 24px 60px rgba(15,23,42,.2)}
.xt-pop-kicker{font-size:12px;font-weight:700;color:#3b82a8;margin-bottom:6px}
.xt-pop h3{margin:0 0 6px;font-size:18px;color:#123052}
.xt-pop-meta{font-size:12px;color:#64748b;margin-bottom:10px}
.xt-pop-body{font-size:14px;line-height:1.75;color:#334155;white-space:pre-wrap;margin-bottom:16px}

.cal-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:0 0 12px;padding:10px 12px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px}
.cal-views,.cal-shift{display:flex;gap:6px;flex-wrap:wrap}
.cal-toolbar .ghost-btn,.cal-toolbar .cta-btn{font-size:13px;padding:6px 12px;font-weight:650}
.cal-gantt-bar{font-size:12px;letter-spacing:.01em}
.cal-gantt-cat{color:#163e66;font-size:12.5px}
.code-card b{font-size:17px;font-weight:750;color:#0f2744}
.code-expire{color:#5b7c99}
@media (max-width:720px){.cal-gantt-cat{width:72px;flex-basis:72px;font-size:12px;padding:6px}.cal-gantt-d{width:72px;flex-basis:72px}.cal-gantt-bar{height:26px;line-height:26px;font-size:11px;padding:0 8px}.cal-toolbar{padding:8px}.xt-pop{padding:16px;border-radius:16px}}

.notice-strip{display:block;width:100%;border:0;border-bottom:1px solid rgba(15,23,42,.08);background:#e8f2ff;color:#1d4e89;font-size:14px;font-weight:750;height:40px;line-height:40px;padding:0 16px;text-align:left;cursor:pointer}
.notice-strip:active{background:#d7e9fb}
.data-back,.data-back-inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:8px 0 12px}
.data-back .ghost-btn,.data-back-inline .ghost-btn{font-size:13px;padding:6px 12px}
.xt-pop{max-height:70vh;overflow:auto}
@media (max-width:760px){
  .xt-pop-mask{align-items:flex-end;padding:12px}
  .xt-pop{width:100%;max-width:none;max-height:72vh;border-radius:16px 16px 12px 12px}
  .cal-gantt-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .cal-gantt-cat{width:76px;flex:0 0 76px;font-size:13px;font-weight:750;padding:8px 6px;line-height:1.3}
  .cal-gantt-d{width:108px;flex:0 0 108px;font-size:13px;padding:8px 0}
  .cal-gantt-d span{font-size:15px;font-weight:800}
  .cal-gantt-d em{font-size:12px}
  .cal-gantt-bar{min-height:32px;height:auto;line-height:1.35;font-size:13px;font-weight:750;padding:6px 10px;white-space:normal;overflow:visible;text-overflow:unset}
  .cal-week-cell b{font-size:18px}
  .cal-week-cell em{font-size:12px}
  .cal-cell{min-height:76px}
  .cal-grid-head{display:none!important}
  .cal-grid{display:flex!important;flex-direction:column;gap:8px;grid-template-columns:none!important}
  .cal-cell.empty{display:none!important}
  .cal-cell{min-height:0!important;flex-direction:row!important;align-items:flex-start;gap:12px;padding:12px!important;width:100%;box-sizing:border-box}
  .cal-cell-d{flex:0 0 52px;flex-direction:column;align-items:flex-start;justify-content:flex-start}
  .cal-cell-d b{font-size:22px!important;line-height:1.1;color:#123052}
  .cal-cell-d i{margin-top:4px}
  .cal-dots{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .cal-bar{display:block!important;width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:unset!important;height:auto!important;min-height:0!important;font-size:14px!important;line-height:1.45!important;padding:8px 10px!important;border-radius:10px!important;color:#0f2744!important}
  .cal-more{font-size:13px}
  .cal-cell-d b{font-size:14px}
  .cal-bar{font-size:12px;line-height:1.3;white-space:normal;height:auto;overflow:visible;text-overflow:unset}
  .cal-item strong{font-size:15px;white-space:normal}
  .cal-toolbar .ghost-btn,.cal-toolbar .cta-btn{font-size:13px;padding:7px 10px}
}

/* xt-audit-20261008 */
@media (max-width:760px){
  .cal-spot,.cal-day-grid,.tools-grid,.pk-grid,.compare-grid,.forum-composer,.home-grid{grid-template-columns:1fr!important;display:flex!important;flex-direction:column}
  .page h1{font-size:22px!important;line-height:1.3}
  .page .muted,.page p{font-size:14px;line-height:1.6}
  .nav-pills,.top-nav,.menu-row{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
  .forum-card,.pk-card,.tool-card{width:100%;box-sizing:border-box}
  .forum-meta,.pk-row{flex-wrap:wrap;gap:6px}
  .data-back{position:sticky;top:0;z-index:6;background:#eef4ff;padding:8px 0}
  .code-card{align-items:flex-start}
  .code-card button{flex:0 0 auto}
  input,select,textarea{font-size:16px!important}
  .ant-modal,.xt-pop{max-width:100%}
}
@media (min-width:761px){
  .unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* xt-audit-20261008g */
.notice-strip{display:block;width:100%;text-align:left;border:0;background:#dce8fb;color:#16345c;padding:8px 14px;font-size:14px;line-height:1.4}
@media (max-width:760px){
  .ice-main table,.page table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  .ice-main th,.ice-main td,.page th,.page td{white-space:nowrap;font-size:12px}
  .eq-card table,.mat-table,.equip-table{min-width:520px}
}
@media (min-width:761px){
  .ice-main table{width:100%}
}

/* xt-eq-scroll */
.equipment-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;display:block}
@media (max-width:760px){
  .equipment-table{min-width:560px}
  .equipment-tabs{display:flex;flex-wrap:wrap;gap:8px}
  .equipment-tab{flex:1 1 42%;min-width:0;font-size:13px}
  .equipment-profile-inner{flex-wrap:wrap}
}

/* eq-minw */
@media (max-width:760px){ .equipment-table{min-width:560px!important} .equipment-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch} }

/* pet/hero numbers: keep one line, swipe sideways — override theme.css max-width:100% */
@media (max-width: 720px) {
  .data-detail .html-body .pet-effect-row,
  .data-detail .html-body .hero-stat-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .data-detail .html-body .pet-effect-label {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    max-width: none !important;
  }
  .data-detail .html-body .pet-effect-values {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex: 1 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    gap: 6px;
  }
  .data-detail .html-body .pet-effect-tag {
    flex: 0 0 auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  .data-detail .html-body table,
  .data-detail .html-body table th,
  .data-detail .html-body table td,
  .data-detail .html-body .pet-upgrade-table,
  .data-detail .html-body .pet-upgrade-table-wrap {
    max-width: none !important;
  }
  .data-detail .html-body table td,
  .data-detail .html-body table th {
    white-space: nowrap !important;
  }
}
