/* Free tools theme v1.6.0. Tool selection follows member layout; brown is workflow progression only. */
.hfm-public{--free-ink:#164d47;--free-accent:#146b63;--free-tint:#edf8f4;background-color:#f3faf6;background-image:linear-gradient(135deg,rgba(220,242,232,.7),rgba(255,253,246,.85));color:#35291f;min-height:100vh}
.hfm-public .hlab-account__page{max-width:1100px;margin:0 auto;padding-top:22px}
.hfm-public .hfm-header{border-bottom:3px solid #146b63;background:#fffdf7}
.hfm-free-badge{display:inline-flex;align-items:center;min-height:28px;padding:2px 12px;border:1px solid #146b63;border-radius:99px;background:#e2f4ed;color:#164d47;font-size:14px;font-weight:700;line-height:1.6}
.hfm-public .hfmd-progress li[aria-current="step"],.hfm-public .hfmd-progress li.is-current{border-color:#146b63;background:#dcefe7;color:#164d47}
.hfm-public a{color:#235a51;text-underline-offset:3px}.hfm-public a:not([class]),.hfm-public summary a{text-decoration:underline}
.hfm-public :focus-visible{outline:3px solid #174967;outline-offset:4px}
.hfm-public .hfm-related,.hfm-public .hfmd-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}
.hfm-public .hfm-related>div,.hfm-public .hfmd-related>div{padding:18px;border:1px solid #8cad9e;border-radius:12px;background:#fffdf7}.hfm-public .hfm-related h2{font-size:20px;margin:0 0 8px}
.hfm-public [data-hfm-action="file"],.hfm-public .hfm-file-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 18px;border:2px solid #547f9b;border-radius:10px;background:#e8f4fc;color:#174967;font-size:16px;font-weight:700;line-height:1.5;text-decoration:none;cursor:pointer;box-sizing:border-box}
.hfm-public [data-hfm-action="danger"]{min-height:44px;padding:9px 18px;border:2px solid #ab514a;border-radius:10px;background:#fff1ef;color:#8c302a;font-size:16px;font-weight:700}
.hfm-public [data-hfm-action="secondary"]{min-height:44px;padding:9px 18px;border:2px solid #9c846b;border-radius:10px;background:#fffdf7;color:#4e3826;font-size:16px;font-weight:700}
.hfm-nav-button,.hfm-public .hfm-nav-button,.hfm-public .hfm-nav-button:visited{display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-height:56px;padding:12px 20px;border:2px solid #7b451c;border-radius:10px;background:#7b451c;color:#fff;font-size:18px;font-weight:700;line-height:1.5;text-decoration:none}
.hfm-public button:disabled,.hfm-public [data-hfm-action]:disabled{opacity:.5;cursor:not-allowed}
.hfm-public details>summary{cursor:pointer;font-weight:700;min-height:44px;padding:12px 16px}.hfm-public details>div{padding:0 16px 16px}
.hfm-catalog-suite{grid-column:1/-1;border:2px solid #146b63!important;background:#edf8f4!important}.hfm-catalog-suite .hlab-free-index__tool-icon{background:#dcefe7;color:#146b63}
@media(max-width:640px){.hfm-header__inner{gap:8px;padding:10px 14px}.hfm-header .hlab-account__logo{flex-basis:120px}.hfm-header .hlab-account__logo img{width:120px}.hfm-header__product{font-size:14px}.hfm-public .hfm-nav{gap:4px 12px}.hfm-public .hfm-nav a{font-size:14px}.hfm-public .hlab-account__page{padding-left:14px;padding-right:14px}.hfm-public .hfm-related,.hfm-public .hfmd-related{grid-template-columns:1fr}.hfm-public .sz-field{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.hfm-public .sz-field input,.hfm-public .sz-field select,.hfm-public .sz-field textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.hfm-public .hfm-mercari-home__grid{grid-template-columns:minmax(0,1fr)}.hfm-public .hfm-nav-button{width:100%;box-sizing:border-box}.hfm-public p,.hfm-public label{overflow-wrap:anywhere}.hfm-public input,.hfm-public select,.hfm-public textarea{font-size:16px}}

/* The same title component is used by all free entrypoints, including staged pages. */
.hfm-public.hlab-account .hfm-title { display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:18px;min-height:0;margin:0 0 18px;padding:4px 0 18px;border:0;border-radius:0;background:none;box-shadow:none; }
.hfm-public .hfm-title__copy { min-width:0; }
.hfm-public.hlab-account .hfm-title h1 { margin:4px 0 8px;padding:0;border:0;background:none;box-shadow:none;color:#4a2414;font-size:32px;font-weight:750;line-height:1.45;overflow-wrap:anywhere; }
.hfm-public .hfm-title__location { margin:0 0 4px;color:#146b63;font-size:14px;font-weight:700;line-height:1.6; }
.hfm-public .hfm-title__lead { max-width:820px;margin:0;color:#4f392c;font-size:16px;font-weight:500;line-height:1.8; }
.hfm-public .hfm-title__mascot { justify-self:end;object-fit:contain;max-height:96px; }
.hfm-public :is(button,input,select,textarea,summary) { font-family:inherit; }
.hfm-public [data-hfm-action="file"]:visited,.hfm-public .hfm-file-button:visited { color:#174967; }
@media(max-width:640px) {
 .hfm-public.hlab-account .hfm-title { grid-template-columns:minmax(0,1fr) 64px;gap:8px 12px; }
 .hfm-public .hfm-title__copy { display:contents; }
 .hfm-public .hfm-title__location { grid-column:1;grid-row:1; }
 .hfm-public.hlab-account .hfm-title h1 { grid-column:1;grid-row:2;font-size:28px; }
 .hfm-public .hfm-title__lead,.hfm-public .hfm-title__actions { grid-column:1/-1; }
 .hfm-public .hfm-title__mascot { grid-column:2;grid-row:1/span 2;align-self:start;width:64px!important;max-height:64px; }
 .hfm-public .hfm-title__actions { margin-top:4px; }
}

/* Free title actions mirror the member reference; no member-only desk action. */
.hfm-public .hfm-title__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0}
.hfm-public .hfm-title__actions a.hlab-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;width:auto;margin:0;padding:9px 16px;border:1px solid #e4d7ca;border-radius:999px;font-size:14px;font-weight:800;line-height:1.6;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.hfm-public .hfm-title__actions a.hlab-button--secondary,.hfm-public .hfm-title__actions a.hlab-button--secondary:visited{background:#fff;color:#4a2414;box-shadow:none}
.hfm-public .hfm-title__actions a.hlab-button--primary,.hfm-public .hfm-title__actions a.hlab-button--primary:visited{color:#fff;border-color:transparent;background:linear-gradient(145deg,#9872c1,#79529b);box-shadow:0 6px 14px rgba(122,82,155,.18)}
.hfm-public [data-hfm-title-tool="down"] .hfm-title__actions a.hlab-button--primary{background:linear-gradient(145deg,#cf6b56,#a43b2d)}
.hfm-public [data-hfm-title-tool="up"] .hfm-title__actions a.hlab-button--primary{background:linear-gradient(145deg,#77b86f,#37783f)}
.hfm-public [data-hfm-title-tool="bulk"] .hfm-title__actions a.hlab-button--primary{background:linear-gradient(145deg,#c78b34,#9a5b0f)}
.hfm-public [data-hfm-title-tool="base"] .hfm-title__actions a.hlab-button--primary{background:linear-gradient(145deg,#ba923b,#8e6415)}
@media(max-width:640px){.hfm-public .hfm-title__actions{grid-column:1/-1;display:flex;margin-top:4px}.hfm-public .hfm-title__actions a.hlab-button{width:auto;min-height:44px}}

/* 2026-11-25: Free Mercari product header only; give the name its own row.
   Do not change the member/product header, navigation targets or advertisement. */
@media (max-width:640px) {
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__inner {
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    min-height:0;
    padding:9px 0;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__brand {
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    grid-column:1;
    grid-row:1;
    align-items:center;
    gap:12px;
    width:100%;
    min-width:0;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__brand img {
    width:112px!important;
    max-width:100%;
    height:auto;
  }
  .hfm-public .hfm-header .hlab-site-header__product-title {
    min-width:0;
    font-size:16px;
    line-height:1.45;
    overflow-wrap:normal;
    word-break:normal;
  }
  .hfm-public .hfm-header .hlab-site-header__product-title > span {
    white-space:nowrap;
  }
  .hfm-public .hfm-header .hfm-free-badge {
    min-height:24px;
    padding:1px 8px;
    vertical-align:middle;
    font-size:12px;
    white-space:nowrap;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__actions {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 74px;
    grid-column:1;
    grid-row:2;
    justify-content:stretch;
    gap:8px;
    width:100%;
    min-width:0;
  }
  .hfm-public .hfm-header .hlab-site-header__actions > :where(a,button[type="submit"]) {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:44px;
    padding:8px 6px;
    font-size:14px;
  }
  .hfm-public .hfm-header.is-enhanced .hlab-site-header__toggle {
    box-sizing:border-box;
    width:100%;
    min-width:0;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__nav {
    grid-column:1;
    grid-row:3;
  }
}
@media (max-width:350px) {
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__brand {
    grid-template-columns:88px minmax(0,1fr);
    gap:8px;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__brand img {
    width:88px!important;
  }
  .hfm-public .hfm-header .hlab-site-header__product-title {
    font-size:14px;
  }
  .hfm-public .hfm-header.hlab-site-header--product .hlab-site-header__actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 66px;
    gap:6px;
  }
}
