:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --red:#d7000f;       /* 日の丸っぽい赤 */
  --red2:#ff1a1a;      /* 強い差し色 */
  --card:#ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#fff 0%, #fff 60%, #fff5f5 100%);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92vw); margin:0 auto; }

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.02em;
}
.brand .dot{
  width:34px; height:34px; border-radius:999px;
  background:radial-gradient(circle at 30% 30%, var(--red2), var(--red));
  box-shadow: 0 10px 18px rgba(215,0,15,.25);
}
.navlinks{ display:flex; gap:14px; align-items:center; }
.topbar .mobile-nav{ display:none; }
.menu-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  width:44px;
  height:44px;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.navlinks a{
  padding:10px 12px; border-radius:12px; color:var(--muted);
}
.navlinks a.active, .navlinks a:hover{
  color:var(--text);
  background:#fff2f2;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
}
.btn.red{
  background:linear-gradient(180deg, var(--red2), var(--red));
  border-color:transparent;
  color:#fff;
  box-shadow: 0 12px 20px rgba(215,0,15,.25);
}
.btn.ghost{
  background:transparent;
}

.hero{
  padding:26px 0 10px;
}
.heroCard{
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 70% 20%, rgba(215,0,15,.12), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(255,26,26,.10), transparent 40%),
    #fff;
  box-shadow: var(--shadow);
  padding:22px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.h1{ font-size: clamp(22px, 3vw, 36px); margin:0 0 10px; }
.p{ margin:0; color:var(--muted); line-height:1.6; }

.kpis{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:16px; }
.kpi{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px;
  background:#fff;
}
.kpi b{ font-size:18px; }
.kpi span{ display:block; color:var(--muted); font-size:12px; margin-top:4px; }

.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section{ padding:18px 0 28px; }
.sectionTitle{ display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 12px; }
.sectionTitle h2{ margin:0; font-size:18px; }
.sectionTitle small{ color:var(--muted); }

.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, 1fr);
}
.item{
  padding:14px;
}
.badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.badge{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid var(--border); color:var(--muted); background:#fff;
}
.badge.red{ border-color: rgba(215,0,15,.2); color:var(--red); background:#fff0f0; }
.badge.sold{ border-color:#d1d5db; color:#374151; background:#f3f4f6; }
.badge.dark{ border-color:#111; color:#111; background:#fff; }

.row{ display:flex; justify-content:space-between; gap:10px; }
.priceLock{
  border:1px dashed rgba(215,0,15,.45);
  background: linear-gradient(180deg, #fff, #fff6f6);
  padding:12px;
  border-radius: var(--radius);
}
.listingActionCard{
  border-style: solid;
  border-color:#e5e7eb;
  background:#fff;
  box-shadow:none;
  padding:16px;
}
.listingSideHeading{
  display:block;
  font-size:16px;
  line-height:1.4;
}
.listingActionMessage{
  font-size:14px;
  margin-top:8px;
}
.lockMsg{ color:var(--muted); font-size:13px; margin-top:6px; }

.form{
  display:grid; gap:12px;
}
.input, select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
}
.input:focus, select:focus{
  border-color: rgba(215,0,15,.45);
  box-shadow: 0 0 0 4px rgba(215,0,15,.10);
}

.footer{
  padding:26px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
}

.footerMeta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.footerLink{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:2px;
}
.footerLink:hover{
  color:var(--red);
}

@media (max-width: 900px){
  .heroCard{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .kpis{ grid-template-columns: 1fr; }
  .detailGrid{ grid-template-columns: 1fr !important; }
}

@media (max-width: 768px){
  .topbar .topbar-nav{
    display:none;
  }
  .topbar .nav{
    position:relative;
    gap:10px;
  }
  .topbar .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }
  .topbar .topbar-actions{
    display:none !important;
  }
  .topbar .mobile-nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:min(240px, 78vw);
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    padding:8px;
    z-index:80;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .topbar .mobile-nav.is-open{
    display:flex;
  }
}

.galleryRow{
  display:flex;
  gap:10px;
  margin-top:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.galleryRow > div{ flex: 0 0 auto; }
.galleryRow > img{ flex: 0 0 auto; }

.listingDetailGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.listingDetailTitle{ margin-top:6px; margin-bottom:6px; }
.listingDetailSection{ margin-top:12px; }

.listingDetailInfoGrid{ margin-top:10px; display:grid; gap:10px; }
.listingDetailInfoRow{
  align-items:flex-start;
  padding:8px 0;
  border-bottom:1px solid #eef0f3;
}
.listingDetailInfoRow:first-child{
  border-top:1px solid #eef0f3;
}
.listingDetailInfoLabel{
  flex:0 0 120px;
  max-width:120px;
}
.listingDetailInfoValue{
  flex:1;
  min-width:0;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.listingGalleryImage,
.listingGalleryEmpty{
  min-width:160px;
  width:160px;
  height:110px;
  border:1px solid var(--border);
  border-radius:14px;
  object-fit:cover;
  background:#fff2f2;
}
.listingGalleryEmpty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
}
.listingStatusFlow{
  margin-top:10px;
  display:grid;
  gap:8px;
}


.pageHeader h1{ margin:0; font-size:24px; }
.pageHeader p{ margin:8px 0 0; color:var(--muted); }

.panel{ padding:16px; }
.note{ color:var(--muted); font-size:13px; }

.formLabel{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.toolbar{ display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.fieldGrow{ min-width:220px; flex:1; }
.buttonRow{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.listingActionButtons{
  margin-top:14px;
  gap:12px;
}
.quickPurchaseForm{
  display:grid;
  gap:6px;
  width:100%;
  max-width:360px;
}
.listingBtnMain,
.listingBtnSub{
  min-height:46px;
  font-size:15px;
  border-radius:12px;
}
.listingBtnMain{
  background:#facc15;
  color:#3f2b00;
  border-color:#eab308;
}
.listingBtnMain:hover{
  background:#eab308;
  color:#2a1e00;
}
.listingBtnSub{
  background:linear-gradient(180deg, var(--red2), var(--red));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 20px rgba(215,0,15,.25);
}
.listingActionTradeForm,
.listingActionTrade{
  width:100%;
  max-width:360px;
}
.listingActionTrade{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.listingActionNotice{
  margin-top:8px;
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}
.listingPriceCard{
  border-color:#f4c8cf;
  background:linear-gradient(180deg, #fff, #fff9fa);
}
.listingPriceGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.listingPriceItem{
  border:1px solid #f4d6db;
  background:#fff;
  border-radius:12px;
  padding:12px;
}
.listingPriceLabel{
  display:block;
  font-size:12px;
  color:#6b7280;
  margin-bottom:6px;
}
.listingPriceValue{
  display:block;
  color:#111827;
  font-size:18px;
  line-height:1.3;
}
.modalOpen{
  overflow:hidden;
}
.confirmModal{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:20px;
}
.confirmModal[hidden]{
  display:none !important;
}
.confirmModalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.48);
}
.confirmModalDialog{
  position:relative;
  z-index:1;
  width:min(100%, 520px);
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 18px 44px rgba(15,23,42,.24);
  padding:18px;
}
.confirmModalTitle{
  margin:0;
  font-size:20px;
}
.confirmSummary{
  margin-top:12px;
  border:1px solid #f3d2d8;
  border-radius:12px;
  background:#fff9fa;
  padding:12px;
  display:grid;
  gap:10px;
}
.confirmSummaryRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.confirmQuantityInput{
  max-width:120px;
  text-align:right;
}
.confirmQuantityInput.is-readonly,
.confirmQuantityInput[readonly]{
  background:#f3f4f6;
  color:#6b7280;
  border-color:#d1d5db;
  cursor:not-allowed;
}
.confirmSummaryTotal{
  border-top:1px dashed #e5c3c9;
  padding-top:10px;
}
.confirmSummaryTotal strong{
  color:var(--red);
  font-size:22px;
  line-height:1.2;
}
.confirmModalQuestion{
  margin:14px 0 0;
  font-weight:700;
}
.confirmModalWarning{
  margin:8px 0 0;
  color:#9f1239;
  font-size:13px;
}
.confirmModalActions{
  margin-top:16px;
  justify-content:flex-end;
}
.confirmModalActions .btn{
  min-width:130px;
}
.quickPurchaseForm .input{
  width:100%;
}
.topbar .buttonRow form .btn{
  color:#333 !important;
  -webkit-text-fill-color:#333 !important;
  font-size:14px !important;
  opacity:1 !important;
  text-indent:0 !important;
  -webkit-appearance:none;
  appearance:none;
}

.searchGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.searchActions{ display:flex; gap:10px; align-items:end; }
.searchActions{ flex-wrap:wrap; }
.searchActions .btn{ white-space:nowrap; }
.searchActions .btn{ max-width:100%; }

.resultGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.resultCard{ padding:14px; }
.resultCard h3{ margin:0 0 10px; font-size:17px; }
.resultCard .meta{ color:var(--muted); font-size:13px; display:grid; gap:4px; }
.resultCard .meta > div{
  overflow-wrap:anywhere;
}

.topLatestCard{
  align-self:start;
}
.topLatestHeading{
  margin:0 0 10px;
  font-size:18px;
}
.topLatestCard .meta{
  margin-top:4px;
}
.topLatestMeta{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
}
.topLatestMeta > div{
  padding:6px 0;
  border-bottom:1px solid #f1f5f9;
}
.topLatestMeta > div:last-child{
  border-bottom:none;
}
.topLatestMeta span{
  font-weight:700;
  color:#374151;
}
.topLatestLock{
  margin-top:12px;
}

.listRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.listRow:last-child{ border-bottom:none; padding-bottom:0; }


.pager{ margin-top:14px; }
.paginationNav{ display:flex; justify-content:center; }
.paginationList{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.paginationLink{
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:#374151;
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  transition:background-color .2s, border-color .2s, color .2s;
}
.paginationLink:hover{
  background:#fff5f5;
  border-color:#ffcece;
  color:#8f0011;
}
.paginationLink.is-active{
  background:linear-gradient(180deg, var(--red2), var(--red));
  border-color:transparent;
  color:#fff;
}
.paginationLink.is-disabled,
.paginationLink.is-ellipsis{
  color:#9ca3af;
  background:#f9fafb;
}
.paginationLink.is-disabled{
  cursor:not-allowed;
}

@media (max-width: 768px){
  .paginationList{ gap:6px; }
  .paginationLink{
    min-width:38px;
    height:38px;
    padding:0 10px;
    font-size:13px;
  }
  .quickPurchaseForm{
    max-width:none;
  }
  .listingActionTradeForm,
  .listingActionTrade{
    max-width:none;
  }
  .listingActionButtons > form,
  .listingActionButtons > .btn{
    width:100%;
  }
  .listingPriceGrid{
    grid-template-columns: 1fr;
  }
  .confirmModal{
    padding:14px;
  }
  .confirmModalDialog{
    width:100%;
    padding:14px;
  }
  .confirmModalTitle{
    font-size:18px;
  }
  .confirmSummaryRow{
    align-items:flex-start;
    flex-direction:column;
  }
  .confirmQuantityInput{
    max-width:none;
    width:100%;
    text-align:left;
  }
  .confirmModalActions{
    justify-content:stretch;
  }
  .confirmModalActions .btn{
    flex:1;
    min-width:0;
  }
}


@media (max-width: 900px){
  .searchGrid{ grid-template-columns:1fr; }
  .resultGrid{ grid-template-columns:1fr; }
  .listingDetailGrid{ grid-template-columns:1fr; }
  .searchActions .btn{ flex:1 1 auto; min-width:0; }
}

/* mypage ui tuning */
.mypageWrap{
  display:grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap:16px;
  margin:20px auto 26px;
}

.expiry-alert-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:6px;
  border-radius:50%;
  background:#fff3e0;
  color:#d84315;
  border:1px solid #ff8a65;
  font-weight:700;
  font-size:12px;
  line-height:1;
  vertical-align:middle;
}
.mypageSidebar{ padding:14px; align-self:start; }
.mypageUserBlock{ padding:8px 4px 14px; border-bottom:1px solid var(--border); }
.mypageMenu{ display:grid; gap:12px; margin-top:14px; }
.mypageMenuSection{ display:grid; gap:6px; padding:10px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.mypageMenuLabel{ margin:0 0 2px; font-size:12px; color:var(--muted); font-weight:700; }
.mypageMenu a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid transparent;
  color:#374151;
  font-weight:600;
}
.mypageMenu a:hover,
.mypageMenu a:focus-visible{ background:#fff5f5; border-color:#ffd9d9; color:var(--text); }
.mypageMenu a.active{ background:#fff0f0; border-color:#ffbaba; color:#8f0011; }

.mypageScope .mypageMain h1{ margin-top:0; }
.mypageList{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.mypageListItem{ border:1px solid var(--border); border-radius:12px; padding:12px 14px; background:#fff; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mypageListItem a{ display:block; width:100%; }

.mypageFormStack{ display:grid; gap:14px; max-width:760px; }
.mypageFormInline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:18px; }
.mypageField label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.mypageControl,
.mypageScope input[type="text"],
.mypageScope input[type="number"],
.mypageScope input[type="file"],
.mypageScope select,
.mypageScope textarea,
.mypageScope button{
  font:inherit;
}
.mypageControl,
.mypageScope input[type="text"],
.mypageScope input[type="number"],
.mypageScope input[type="file"],
.mypageScope select,
.mypageScope textarea{
  width:100%;
  min-height:44px;
  border:1px solid #d9dde3;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
}
.mypageScope textarea{ min-height:120px; }
.mypageControl:focus,
.mypageScope input[type="text"]:focus,
.mypageScope input[type="number"]:focus,
.mypageScope input[type="file"]:focus,
.mypageScope select:focus,
.mypageScope textarea:focus{
  outline:none;
  border-color:rgba(215,0,15,.45);
  box-shadow:0 0 0 4px rgba(215,0,15,.1);
}
.mypageScope .btn{ min-height:44px; padding:10px 14px; border-radius:12px; }

.mypageTradeMeta{ margin:12px 0; padding:12px; border:1px solid var(--border); border-radius:12px; }
.mypageTradeActions{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.mypageChatBox{ border:1px solid #eee; border-radius:12px; padding:14px; height:420px; overflow:auto; background:#fafafa; margin-bottom:14px; }
.mypageChatRow{ display:flex; justify-content:flex-start; margin:8px 0; }
.mypageChatRow.is-mine{ justify-content:flex-end; }
.mypageChatBubble{ max-width:70%; padding:10px 12px; border-radius:14px; border:1px solid #e5e5e5; background:#f3f3f3; }
.mypageChatRow.is-mine .mypageChatBubble{ background:#fff; }
.mypageChatBubble.is-system{
  background:#fff7ed;
  border-color:#fed7aa;
}
.mypageChatMeta{ font-size:12px; opacity:.7; margin-bottom:4px; }
.mypageTradeCompleteForm{ margin-bottom:12px; }
.tradeNotice{
  margin:12px 0;
  padding:10px 12px;
  border:1px solid #fca5a5;
  border-radius:12px;
  background:#fff1f2;
  color:#9f1239;
  font-weight:600;
}

@media print{
  @page{
    margin:12mm;
  }

  .mypageScope{
    background:#fff;
    color:#000;
  }

  .mypageScope .topbar,
  .mypageScope .footer,
  .mypageScope .mypageSidebar,
  .mypageScope .mypageMenuToggle,
  .mypageScope .buttonRow,
  .mypageScope .mypageTradeActions,
  .mypageScope .mypageTradeCompleteForm,
  .mypageScope .alert,
  .mypageScope .btn,
  .mypageScope button{
    display:none !important;
  }

  .mypageScope .container,
  .mypageScope .mypageWrap{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }

  .mypageScope .mypageWrap{
    display:block;
  }

  .mypageScope .mypageMain{
    width:100% !important;
    max-width:100% !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
  }

  .mypageScope .card,
  .mypageScope .panel,
  .mypageScope .tablePanel{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    padding:0 !important;
  }

  .mypageScope .table-wrap{
    overflow:visible !important;
  }

  .mypageScope .mypageTable{
    width:100% !important;
    min-width:0 !important;
    border-collapse:collapse !important;
    table-layout:fixed;
  }

  .mypageScope .mypageTable th,
  .mypageScope .mypageTable td{
    border:1px solid #d1d5db !important;
    padding:6px 8px !important;
    background:transparent !important;
    color:#000 !important;
    word-break:break-word;
    overflow-wrap:anywhere;
  }

  .mypageScope .history-kind-badge{
    border:1px solid #666;
    color:#000 !important;
    background:transparent !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px){
  .mypageScope .nav{
    gap:16px;
  }
  .mypageScope .mypageHeaderNav{
    flex:1;
    min-width:0;
  }
  .mypageScope .buttonRow{
    flex-shrink:0;
    flex-wrap:nowrap;
  }
  .mypageScope .buttonRow form,
  .mypageScope .buttonRow .btn{
    flex-shrink:0;
  }
  .mypageScope .buttonRow .btn{
    width:auto;
    min-width:96px;
    padding:10px 16px;
    white-space:nowrap;
    overflow:visible;
  }
}

.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

@media (max-width: 900px){
  .mypageWrap{ grid-template-columns:1fr; }
  .mypageMenuSection{ padding:8px; }
  .mypageListItem{ flex-direction:column; align-items:flex-start; }
  .mypageChatBubble{ max-width:100%; }
}

@media (max-width: 768px){
  .mypageScope .nav{
    position:relative;
    gap:10px;
  }
  .mypageScope .brand{ font-size:14px; }
  .mypageScope .buttonRow{ gap:6px; }
  .mypageScope .buttonRow .note{ display:none; }
  .mypageScope .mypageMenuToggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    order:2;
    z-index:80;
  }
  .mypageScope .mypageHeaderNav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:min(220px, 70vw);
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    padding:8px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    z-index:75;
  }
  .mypageScope .mypageHeaderNav.active{ display:flex; }
  .mypageScope .mypageHeaderNav a{ width:100%; }
}

.table-wrap{
  width:100%;
  overflow-x:auto;
  min-width:0;
}
.product-ranking-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.product-ranking-table th,
.product-ranking-table td{
  border-bottom:1px solid var(--border);
  padding:10px 8px;
  vertical-align:middle;
}
.product-ranking-table th{
  text-align:left;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.product-ranking-table .num{
  text-align:right;
  white-space:nowrap;
}
.rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  border-radius:999px;
  background:#fff0f0;
  color:#8f0011;
  font-weight:700;
}
.product-thumb{
  width:72px;
  height:48px;
  object-fit:cover;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
}
.product-thumb.no-image{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
}

.btn.btn-sm{
  min-height:36px;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
}
.btn.btn-primary{
  background:linear-gradient(180deg, var(--red2), var(--red));
  border-color:transparent;
  color:#fff;
}
.btn.btn-secondary{
  background:#f9fafb;
  color:#111827;
}
.btn.btn-outline{
  background:transparent;
  border-color:#d1d5db;
  color:#111827;
}

.tablePanel{ padding:12px; }
.mypageTable{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}
.mypageTable th,
.mypageTable td{
  border-bottom:1px solid var(--border);
  padding:10px 8px;
  vertical-align:middle;
}
.mypageTable th{
  text-align:left;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.history-kind-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  color:#fff;
  font-weight:700;
  font-size:14px;
  line-height:1;
}
.history-kind-badge-sell{
  background-color:#007bff;
}
.history-kind-badge-buy{
  background-color:#28a745;
}
.sortableHeader{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.sortableHeader:hover{
  color:#111827;
}
.sortableHeaderNum{
  justify-content:flex-end;
  width:100%;
}
.sortMark{
  font-size:11px;
  color:#9ca3af;
  line-height:1;
}
.listingStateBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#374151;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
.listingStateBadge.is-open,
.listingStateBadge.is-published{
  background:#fff7cc;
  color:#8a6500;
  border-color:#f3d36b;
}
.listingStateBadge.is-sold{
  background:#dcfce7;
  color:#166534;
  border-color:#86efac;
}
.mypageTable .num{ text-align:right; white-space:nowrap; }



.purchase-history-table{
  table-layout:fixed;
  width:100%;
}
.purchase-history-table .purchase-history-col-action{ width:8%; }
.purchase-history-table .purchase-history-col-date{ width:16%; }
.purchase-history-table .purchase-history-col-kind{ width:8%; }
.purchase-history-table .purchase-history-col-company{ width:18%; }
.purchase-history-table .purchase-history-col-product{ width:31%; }
.purchase-history-table .purchase-history-col-quantity{ width:7%; }
.purchase-history-table .purchase-history-col-price{ width:12%; }
.purchase-history-table th,
.purchase-history-table td{
  overflow-wrap:break-word;
  word-break:normal;
}
.purchase-history-product-cell{
  min-width:0;
}
.purchase-history-product{
  display:grid;
  gap:3px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
}
.purchase-history-product-maker,
.purchase-history-product-type{
  color:var(--muted);
  font-size:13px;
}
.purchase-history-product-machine{
  color:#111827;
  font-weight:700;
}

.purchase-history-detail,
.purchase-history-detail-table{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.purchase-history-detail-table th,
.purchase-history-detail-table td{
  max-width:100%;
  box-sizing:border-box;
}
.purchase-history-detail{
  overflow-x:hidden;
}
.purchase-history-detail-table{
  min-width:0;
  table-layout:fixed;
}
.purchase-history-detail-table th,
.purchase-history-detail-table td{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.mypageTableNoScroll{
  min-width:0;
  table-layout:fixed;
  width:100%;
}
.mypageTableNoScroll th,
.mypageTableNoScroll td{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  vertical-align:top;
}
.mypageTableNoScroll .num{
  white-space:normal;
}
.mypageTableNoScroll .tradePreview{
  max-width:100%;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}

.mypageTableNoScroll.purchase-history-table th,
.mypageTableNoScroll.purchase-history-table td{
  overflow-wrap:break-word;
  word-break:normal;
}
.listing-machine-cell{
  line-height:1.55;
}
.listing-machine-name{
  font-size:1.05em;
}
.listing-summary-badges{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.listing-status-stack{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
}
.listing-index-table th:last-child,
.listing-index-table td:last-child{
  width:220px;
}
.listing-actions{
  align-items:flex-start;
}
.mypageThumb{
  width:76px;
  height:52px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
}
.mypageThumb.no-image{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
}
.table-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.listings-public-table .listing-detail-cell .table-actions{
  justify-content:flex-end;
}



/* fit listing tables in /listings and /mypage/listings */
.listing-table-fit-wrap{
  overflow-x:visible;
}
.listing-table-fit-wrap .listing-index-table,
.listing-table-fit-wrap .listings-public-table{
  width:100%;
  min-width:0 !important;
  table-layout:fixed;
}
.listing-table-fit-wrap .listing-index-table th,
.listing-table-fit-wrap .listing-index-table td,
.listing-table-fit-wrap .listings-public-table th,
.listing-table-fit-wrap .listings-public-table td{
  min-width:0;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  vertical-align:top;
}
.listing-table-fit-wrap .listing-index-table .num,
.listing-table-fit-wrap .listings-public-table .num{
  white-space:normal;
}
.listing-table-fit-wrap .listing-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}
.listing-table-fit-wrap .listing-actions > *{
  width:100%;
}
.listing-table-fit-wrap .listing-index-table th:last-child,
.listing-table-fit-wrap .listing-index-table td:last-child{
  width:auto;
}

/* listings index table fit within viewport */
.listings-public-table{
  width:100%;
  table-layout:fixed;
}
.listings-public-table th,
.listings-public-table td{
  min-width:0;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  vertical-align:top;
}
.listings-public-table th:nth-child(1),
.listings-public-table td:nth-child(1){ width:88px; }
.listings-public-table th:nth-child(2),
.listings-public-table td:nth-child(2){ width:120px; }
.listings-public-table th:nth-child(3),
.listings-public-table td:nth-child(3){ width:26%; }
.listings-public-table th:nth-child(4),
.listings-public-table td:nth-child(4){ width:92px; }
.listings-public-table th:nth-child(5),
.listings-public-table td:nth-child(5){ width:72px; }
.listings-public-table th:nth-child(6),
.listings-public-table td:nth-child(6){ width:112px; }
.listings-public-table th:nth-child(7),
.listings-public-table td:nth-child(7){ width:20%; }
.listings-public-table .num{
  white-space:normal;
}
.listings-public-table .listing-machine-name{
  margin-top:2px;
  font-size:1em;
  line-height:1.45;
}
.listings-public-table .listing-detail-cell .btn{
  width:100%;
}

.tradePreview{
  max-width:280px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tradeUnreadDot{
  display:inline-block;
  width:8px;
  height:8px;
  margin-left:6px;
  border-radius:999px;
  background:var(--red);
  vertical-align:middle;
}
.tradeUnreadBadge{
  margin-top:6px;
}
.myMachineMatchBadge{
  margin-left:8px;
  min-width:22px;
  text-align:center;
}

.mypageMachineMatches{
  margin-top:24px;
}
.mypageMachineMatchList{
  display:grid;
  gap:12px;
}
.mypageMachineMatchCard{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background:#fff;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.mypageMachineMatchMain{
  min-width:0;
  flex:1;
}
.mypageMachineMatchMaker{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.mypageMachineMatchTitle{
  margin:6px 0 8px;
  font-size:18px;
  line-height:1.4;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.mypageMachineMatchMeta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.mypageMachineMatchInfo{
  margin:10px 0 0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:8px 12px;
}
.mypageMachineMatchInfo div{
  min-width:0;
}
.mypageMachineMatchInfo dt{
  font-size:12px;
  color:var(--muted);
}
.mypageMachineMatchInfo dd{
  margin:2px 0 0;
  font-size:14px;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.mypageMachineMatchActions{
  display:flex;
  align-items:flex-start;
}

@media (max-width: 768px){
  .toolbar > *,
  .buttonRow > *,
  .table-actions > *{
    min-width:0;
  }
  .fieldGrow{
    min-width:0;
    flex-basis:100%;
  }
  .table-wrap.table-wrap-mobile{
    overflow-x:visible;
  }
  .mypageTable.mobile-fit{
    min-width:0;
    table-layout:fixed;
  }
  .mypageTable.mobile-fit th,
  .mypageTable.mobile-fit td{
    font-size:12px;
    padding:8px 6px;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    vertical-align:top;
  }
  .mypageTable.mobile-fit .num{
    text-align:left;
    white-space:normal;
  }
  .mypageTable.mobile-fit .sortableHeaderNum{
    justify-content:flex-start;
  }
  .mypageTable.mobile-fit .btn{
    width:100%;
  }
  .mypageTable.mobile-fit .badge{
    max-width:100%;
    white-space:normal;
  }
  .listings-public-table .listing-detail-cell .table-actions{
    justify-content:flex-start;
  }
  .listings-public-table th,
  .listings-public-table td{
    width:auto !important;
  }
  .listings-public-table th:nth-child(1),
  .listings-public-table td:nth-child(1){
    width:76px !important;
  }
  .listing-index-table th:last-child,
  .listing-index-table td:last-child{
    width:auto;
  }
  .listing-actions{
    gap:6px;
  }
  .mypageTable.mobile-fit .tradePreview{
    max-width:100%;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .purchase-history-table{
    border-collapse:separate;
    border-spacing:0 12px;
  }
  .purchase-history-table colgroup,
  .purchase-history-table thead{
    display:none;
  }
  .purchase-history-table tbody,
  .purchase-history-table tr,
  .purchase-history-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .purchase-history-table tr{
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    overflow:hidden;
  }
  .purchase-history-table td{
    border-bottom:1px solid var(--border);
    padding:10px 12px;
    text-align:left;
    word-break:normal;
    overflow-wrap:break-word;
  }
  .purchase-history-table td:last-child{
    border-bottom:0;
  }
  .purchase-history-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
  }
  .purchase-history-table td.note::before{
    content:none;
  }
  .purchase-history-table .btn{
    width:auto;
  }
  .purchase-history-table .num{
    text-align:left;
  }
  .purchase-history-product{
    gap:4px;
  }
  .purchase-history-product-maker,
  .purchase-history-product-type{
    font-size:12px;
  }
  .mypageMachineMatchCard{
    flex-direction:column;
  }
  .mypageMachineMatchInfo{
    grid-template-columns: 1fr;
  }
  .mypageMachineMatchActions .btn{
    width:100%;
  }
}

.profileEditHeader{ margin-bottom:14px; }
.profileEditCard{ max-width:760px; margin-bottom:14px; }
.profileEditCard h2{ margin:0 0 10px; }
.profileNotice{
  max-width:760px;
  margin:0 0 14px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  color:#166534;
  font-weight:600;
}
.profileFieldError{
  margin:6px 0 0;
  color:#b91c1c;
  font-size:13px;
}
.profileCard{ max-width:760px; }
.profileGrid{
  display:grid;
  grid-template-columns: 180px minmax(0,1fr);
  gap:10px 16px;
  margin:0;
}
.profileGrid dt{
  color:var(--muted);
  font-weight:700;
}
.profileGrid dd{ margin:0; }

@media (max-width: 768px){
  .profileGrid{ grid-template-columns: 1fr; gap:6px; }
  .profileGrid dt{ margin-top:8px; }
}

/* admin ui */
.admin-page{
  background:linear-gradient(180deg,#fafafa 0%, #fefefe 65%, #fff5f5 100%);
}
.admin-main{
  width:min(1200px, 94vw);
  padding-top:20px;
}
.admin-shell{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
  padding:20px;
}
.admin-header{ margin-bottom:16px; }
.admin-header h1{ margin:0; font-size:26px; }
.admin-eyebrow{
  margin:0 0 6px;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.06em;
}
.admin-user-tools{
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-user-name{
  font-size:14px;
  color:#374151;
}

.alert{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid;
  margin:0 0 16px;
}
.alert ul{ margin:0; padding-left:18px; }
.alert-success{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#166534;
}
.alert-error{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.admin-toolbar{ margin-bottom:12px; }
.admin-filter{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  align-items:end;
  margin-bottom:14px;
}
.admin-filter-members{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}
.admin-filter-side{
  justify-self:end;
}
.admin-filter-actions{
  grid-column:1 / -1;
}
.admin-form{
  display:grid;
  gap:12px;
  max-width:840px;
}
.admin-field{ display:grid; gap:6px; }
.admin-field label{
  font-size:13px;
  color:#4b5563;
  font-weight:600;
}
.admin-field-compact{ max-width:260px; }
.admin-field input,
.admin-field select,
.admin-field textarea{
  width:100%;
  min-height:42px;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
}
.admin-field textarea{ min-height:120px; resize:vertical; }
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus{
  border-color: rgba(215,0,15,.45);
  box-shadow: 0 0 0 4px rgba(215,0,15,.10);
  outline:none;
}
.admin-checkbox{
  display:flex;
  align-items:center;
  gap:8px;
}
.admin-checkbox input{ width:18px; min-height:18px; }
.admin-help{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

.btn{ cursor:pointer; }
.btn.btn-primary{
  background:linear-gradient(180deg, var(--red2), var(--red));
  color:#fff;
  border-color:transparent;
}
.btn.btn-edit{
  border-color:#cbd5e1;
  background:#f8fafc;
  color:#1e293b;
}
.btn.btn-danger{
  border-color:#fecaca;
  background:#ef4444;
  color:#fff;
}
.btn.btn-muted{
  border-color:#d1d5db;
  background:#f9fafb;
  color:#374151;
}

.admin-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.admin-table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 4px 14px rgba(17,24,39,.04);
  background:#fff;
}
.admin-table{
  width:100%;
  min-width:720px;
  border-collapse:separate;
  border-spacing:0;
}
.admin-table th,
.admin-table td{
  padding:12px;
  border-bottom:1px solid #e5e7eb;
  vertical-align:middle;
  text-align:left;
  white-space:nowrap;
}
.admin-table td{ white-space:normal; word-break:break-word; }
.admin-table thead th{
  background:#f8fafc;
  color:#374151;
  font-size:13px;
}
.admin-table tbody tr:hover td{
  background:#fff7f7;
}
.admin-empty{
  text-align:center;
  color:var(--muted);
  padding:20px !important;
}

.expiring-soon{
  color:#dc2626;
  font-weight:700;
}
.admin-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.admin-badge.is-on,
.admin-badge.is-paid{
  background:#dcfce7;
  color:#166534;
}
.admin-badge.is-off,
.admin-badge.is-free{
  background:#f3f4f6;
  color:#4b5563;
}
.admin-pager{ margin-top:14px; }
.admin-pagination-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.admin-pagination-meta{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.admin-pagination-nav{ margin-left:auto; }
.admin-pagination-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.admin-pagination-link{
  min-width:36px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
  font-size:13px;
  font-weight:600;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:background-color .2s, border-color .2s, color .2s;
}
.admin-pagination-link:hover{
  background:#fff5f5;
  border-color:#fecaca;
  color:#991b1b;
}
.admin-pagination-link.is-active{
  background:#ffe4e6;
  border-color:#fda4af;
  color:#9f1239;
}
.admin-pagination-link.is-disabled,
.admin-pagination-link.is-ellipsis{
  background:#f9fafb;
  color:#9ca3af;
}
.admin-pagination-link.is-disabled{ cursor:not-allowed; }
.admin-description{ margin-bottom:12px; color:#374151; }

@media (max-width: 900px){
  .admin-main{ width:min(1200px, 96vw); }
  .admin-shell{ padding:14px; }
  .admin-filter,
  .admin-filter-members{ grid-template-columns:1fr; }
  .admin-filter-side{ justify-self:start; }
  .admin-filter-actions{ grid-column:auto; }
  .admin-field-compact{ max-width:none; }
  .admin-pagination-wrap{ align-items:flex-start; }
  .admin-pagination-nav{ margin-left:0; }
}

.companyCreateWrap{
  width:min(720px, 100%);
  margin:24px auto 30px;
}
.companyCreateHeader{
  margin-bottom:14px;
}
.companyCreateHeader h1{
  margin:0;
  font-size:clamp(22px, 3vw, 30px);
}
.companyCreateHeader p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.8;
  font-size:14px;
}
.companyCreateCard{
  padding:20px;
}
.companyCreateNotice,
.companyCreateErrorSummary{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:14px;
}
.companyCreateNotice{
  background:#fff8f8;
}
.companyCreateErrorSummary{
  background:#fff7f7;
  border-color:rgba(215,0,15,.25);
}
.companyCreateErrorSummary strong{
  display:block;
  margin-bottom:6px;
}
.companyCreateErrorSummary ul{
  margin:0;
  padding-left:1.2em;
}
.companyCreateForm{
  display:grid;
  gap:14px;
}
.companyCreateField label{
  display:block;
  margin-bottom:6px;
  font-weight:700;
  font-size:14px;
}
.companyCreateField .required{
  display:inline-block;
  margin-left:4px;
  padding:2px 8px;
  border-radius:999px;
  background:#fff0f0;
  color:var(--red);
  border:1px solid rgba(215,0,15,.2);
  font-size:11px;
  font-weight:700;
  vertical-align:middle;
}
.companyCreateField .optional{
  font-size:12px;
  color:var(--muted);
  margin-left:4px;
  font-weight:500;
}
.companyCreateField .input,
.companyCreateField select,
.companyCreateField textarea{
  width:100%;
}
.companyCreateField .is-invalid{
  border-color:rgba(215,0,15,.45);
  box-shadow:0 0 0 4px rgba(215,0,15,.08);
}
.fieldError{
  margin:6px 0 0;
  color:#b91c1c;
  font-size:13px;
}
.companyCreateSubmit{
  width:100%;
  margin-top:4px;
  min-height:48px;
}

@media (max-width: 768px){
  .companyCreateWrap{
    margin:18px auto 24px;
  }
  .companyCreateCard{
    padding:16px;
    border-radius:14px;
  }
}

.contactSection{ max-width:760px; margin:0 auto; }
.contactCard{ padding:22px; }
.contactForm{ gap:14px; }
.contactField{ display:grid; gap:6px; }
.contactTextarea{ min-height:180px; resize:vertical; }
.required{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  color:#fff;
  background:var(--red);
  border-radius:999px;
  padding:2px 8px;
  vertical-align:middle;
}
.optional{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  color:var(--muted);
}
.fieldError{
  margin:2px 0 0;
  color:#b91c1c;
  font-size:13px;
}
.is-invalid{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 4px rgba(239,68,68,.12);
}
.contactAlert{
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:14px;
}
.contactAlert.success{
  border:1px solid #86efac;
  background:#f0fdf4;
  color:#166534;
}
.contactAlert.error{
  border:1px solid #fca5a5;
  background:#fff1f2;
  color:#9f1239;
}
.agreementLabel{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:14px;
}
.agreementLabel input[type="checkbox"]{
  margin-top:3px;
  width:16px;
  height:16px;
}

@media (max-width: 768px){
  .contactCard{ padding:16px; }
}

@media (max-width: 768px){
  .listingDetailInfoLabel{
    flex:0 0 96px;
    max-width:96px;
  }
}

.search-results-table{
  min-width:960px;
  table-layout:fixed;
}
.search-results-col-maker{ width:12%; }
.search-results-col-machine{ width:16%; }
.search-results-col-category{ width:12%; }
.search-results-col-state{ width:8%; }
.search-results-col-price{ width:12%; }
.search-results-col-quantity{ width:7%; }
.search-results-col-place{ width:10%; }
.search-results-col-date{ width:10%; }
.search-results-col-image{ width:7%; }
.search-results-col-action{ width:6%; }

@media (max-width: 768px){
  .search-results-table{
    min-width:0;
    table-layout:auto;
    border-collapse:separate;
    border-spacing:0 12px;
  }
  .search-results-table colgroup,
  .search-results-table thead{
    display:none;
  }
  .search-results-table tbody,
  .search-results-table tr,
  .search-results-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .search-results-table tr{
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    overflow:hidden;
  }
  .search-results-table td{
    border-bottom:1px solid var(--border);
    padding:10px 12px;
    text-align:left;
    word-break:normal;
    overflow-wrap:break-word;
  }
  .search-results-table td:last-child{
    border-bottom:0;
  }
  .search-results-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
  }
  .search-results-table .num{
    text-align:left;
  }
  .search-results-table .table-actions{
    justify-content:flex-start;
  }
}
