/* C: a compact, light tool workspace and its shared sidebar. */
body.home-page {
  color-scheme: light;
  --canvas: #f3f5f8;
  --surface: #fff;
  --ink: #15202f;
  --muted: #596679;
  --line: #d9dfe8;
  --soft: #edf1f7;
  --primary: #234cea;
  --primary-hover: #183bbd;
  --signal: #ffe85c;
  --focus: 0 0 0 3px rgba(35, 76, 234, .3);
  overflow-x: visible;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.home-page::before { display: none; }
.home-page h1, .home-page h2, .home-page h3 { font-family: inherit; }
.home-page a { color: inherit; text-decoration: none; }
.home-page a, .home-page button { transition: background 180ms, color 180ms, border-color 180ms; }
.home-page a:hover { color: var(--primary); }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; box-shadow: none; }
.home-workspace svg, .home-sidebar svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-page .skip-link { position: fixed; top: 8px; left: 8px; z-index: 70; padding: 14px; background: var(--surface); transform: translateY(-160%); }
.home-page .skip-link:focus { transform: none; }
.home-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 21; display: flex; flex-direction: column; width: 216px; padding: 24px 20px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
.home-page .brand { gap: 9px; min-height: 44px; font: 800 27px/1 Arial, sans-serif; letter-spacing: -1.1px; }
.home-mark { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; background: var(--primary) url("brand/makeloft-mark.svg") center / cover no-repeat; color: #fff; }
.home-mark svg { display: none; }
.home-tagline { margin: 5px 0 45px 3px; color: var(--muted); font-size: 10px; letter-spacing: 2.1px; }
.home-nav-label { margin: 0 11px 15px; color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.home-side-nav { display: flex; flex-direction: column; gap: 7px; }
.home-side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px; border-radius: 3px; font-size: 13px; }
.home-side-nav a.active, .home-side-nav a.active:hover { background: var(--primary); color: #fff; }
.home-side-nav a:not(.active):hover { background: #eef2fe; }
.home-side-nav .home-ml-coin { flex: 0 0 24px; }
.home-number, .home-count { font-family: monospace; font-size: 10px; }
.home-number { width: 19px; flex-shrink: 0; color: var(--muted); text-align: center; }
.home-count { margin-left: auto; }
.home-side-nav .home-side-pricing { margin-top: 17px; padding-top: 24px; border-top: 1px solid var(--line); border-radius: 0; }
.home-sidebar-note { margin-top: auto; padding: 24px 11px 0; border-top: 1px solid var(--line); }
.home-sidebar-note svg { width: 55px; height: 29px; color: var(--primary); stroke-width: 1.2; }
.home-sidebar-note p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.home-workspace { min-width: 0; margin-left: 216px; }
.home-page .topbar { top: 0; width: 100%; min-height: 79px; margin: 0; padding: 10px 36px; gap: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; backdrop-filter: none; }
.home-breadcrumb { display: flex; align-items: center; gap: 13px; flex-shrink: 0; font-size: 13px; }
.home-breadcrumb span { color: var(--muted); }
.home-breadcrumb strong { font-weight: 600; }
.home-page .home-mobile-brand { display: none; }
.home-page .top-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: 12px; }
.home-page .top-actions > a { display: inline-flex; align-items: center; gap: 7px; min-width: 44px; min-height: 44px; }
.home-page .top-actions svg { width: 16px; height: 16px; }
.home-page .language-switch { order: 2; gap: 8px; padding: 0 0 0 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-page .language-switch button { min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 3px; color: var(--muted); }
.home-page .language-switch button[aria-pressed="true"] { background: #eef2fe; color: var(--primary); box-shadow: none; }
.home-page .account-nav { order: 3; flex-wrap: wrap; justify-content: flex-end; }
.home-page .account-link { min-height: 44px; border-radius: 3px; font-size: 12px; }
.home-page .account-signin { padding: 0 18px; border-color: var(--ink); background: var(--ink); color: #fff; }
.home-page .account-signin:hover { background: var(--primary); color: #fff; }
.home-page .account-nav a[href="/history"] { display: none; }
.home-page .page-shell { z-index: auto; width: 100%; max-width: 1510px; padding: 29px 36px 32px; }
.home-page .home-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 204px; padding: 30px 32px 31px; background: var(--primary); color: #fff; text-align: left; }
.home-hero-content { min-width: 0; }
.home-page .eyebrow { gap: 9px; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; color: #dce5ff; font: 10px/1.5 monospace; letter-spacing: 2px; }
.home-page .eyebrow::before { width: 6px; height: 6px; flex-shrink: 0; border: 0; border-radius: 0; background: var(--signal); box-shadow: none; }
.home-page .home-hero h1 { max-width: none; margin: 0 0 15px; font-size: 40px; font-weight: 650; line-height: 1.3; letter-spacing: -1.2px; }
.home-page .hero-copy { max-width: none; margin: 0; color: #e8edff; font-size: 13px; line-height: 1.7; }
.home-hero-graphic { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin: 0 9px 0 20px; }
.home-graphic-frame { position: relative; display: grid; place-items: center; width: 81px; height: 91px; border: 1px solid #91a8ff; }
.home-graphic-frame svg { width: 40px; height: 40px; stroke-width: 1; }
.home-graphic-frame > span { position: absolute; bottom: -23px; left: 0; color: #dce5ff; font-size: 9px; letter-spacing: 1.5px; }
.home-graphic-arrow { margin: 0 2px; color: var(--signal); font-size: 29px; }
.home-graphic-video { width: 93px; height: 104px; border: 0; background: var(--signal); color: var(--ink); transform: rotate(7deg); }
.home-graphic-video > span { transform: rotate(-7deg); }
.home-graphic-video svg { width: 32px; height: 32px; fill: var(--ink); stroke: none; }
.home-mobile-nav { display: none; }
.home-page .home-tools { scroll-margin-top: 100px; }
.home-page .home-section-head { align-items: center; gap: 16px; margin: 28px 0 17px; }
.home-section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-page .home-section-head h2 { font-size: 19px; font-weight: 650; letter-spacing: 0; }
.home-total { padding: 4px 6px; flex-shrink: 0; border: 1px solid #c3ccd9; border-radius: 3px; color: var(--muted); font: 10px monospace; }
.home-page .home-section-head p { display: block; flex-shrink: 0; color: var(--muted); font-size: 11px; }
.home-page .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.home-page .tool-entry { display: flex; flex-direction: column; gap: 0; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: none; }
.home-page .tool-entry:hover { border-color: var(--primary); background: var(--surface); color: var(--ink); transform: none; box-shadow: none; }
.home-page .tool-entry:hover .tool-cover img { transform: none; }
.home-page .tool-entry:active { background: #eef2fe; }
.home-page .tool-cover { position: relative; height: 119px; min-height: 0; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; background: #dce1e9; }
.home-page .tool-entry:first-child img { object-position: center 27%; }
.home-page .home-download-cover { display: grid; place-items: center; background: var(--primary); color: var(--signal); }
.home-page .home-download-cover > svg { width: 180px; height: 76px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-tool-id { position: absolute; top: 10px; left: 10px; padding: 5px 6px; border-radius: 2px; background: var(--surface); color: var(--ink); font: 10px monospace; }
.home-page .tool-copy { flex: 1; padding: 16px 18px 15px; }
.home-tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.home-page .tool-entry h3 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; }
.home-page .tool-type { padding: 4px 6px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 1px; }
.home-page .home-video-tag { border-color: #fff5b3; background: #fff5b3; color: var(--ink); }
.home-page .tool-entry p { display: block; overflow: visible; min-height: 20px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.home-page .open-tool { justify-content: space-between; min-height: 0; margin-top: 14px; padding-top: 0; color: var(--primary); font-size: 11px; font-weight: 600; line-height: 1.6; }
.home-page .open-tool svg { width: 17px; height: 17px; padding: 0; border: 0; border-radius: 0; background: none; }
.home-flow-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px dashed #b9c4d5; border-radius: 4px; background: var(--soft); }
.home-flow-kicker { margin: 0 0 11px; color: var(--muted); font-size: 9px; letter-spacing: 1.8px; }
.home-flow-card h3 { margin: 0 0 21px; font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.home-flow-card ol { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: home-steps; }
.home-flow-card li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; line-height: 1.5; counter-increment: home-steps; }
.home-flow-card li::before { content: counter(home-steps); display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1px solid #bbc6d6; border-radius: 50%; color: var(--primary); font: 9px monospace; }
.home-flow-note { margin: auto 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.home-bottom-strip { display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.home-bottom-strip a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); }
.home-bottom-strip svg { width: 13px; height: 13px; }
.home-page .home-pricing { margin-top: 40px; padding-top: 8px; }
.pricing-page .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.home-page .pricing-card { border-radius: 4px; }
.home-page .home-foot { margin-top: 20px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; font-size: 11px; line-height: 1.8; }
.home-page:not(.pricing-page) .home-foot { justify-content: flex-end; }
.home-page .history-toggle { display: none; }
.home-page .history-drawer a:not(.dashboard-button) { color: var(--primary); text-decoration: underline; }
.home-page .history-drawer .dashboard-button { color: #fff; }
.home-page .history-drawer .dashboard-button.secondary { color: var(--ink); }
.home-page .history-drawer .status-pill.success { color: #087a55; }
.home-page .history-drawer .status-pill.failed, .home-page .history-drawer .dashboard-message.error { color: #b4233c; }

@media (min-width: 1600px) {
  .home-page .tool-cover { height: 165px; }
  .home-page .home-hero { min-height: 225px; }
  .home-page .home-hero h1 { font-size: 48px; }
}
@media (max-width: 1120px) {
  .home-sidebar { width: 185px; padding: 24px 14px; }
  .home-workspace { margin-left: 185px; }
  .home-page .brand { font-size: 23px; }
  .home-page .topbar { padding-right: 26px; padding-left: 26px; }
  .home-breadcrumb { display: none; }
  .home-page .top-actions { width: 100%; }
  .home-page .page-shell { padding: 26px; }
  .home-page .home-hero { padding: 26px; }
  .home-page .home-hero h1 { font-size: 33px; }
  .home-hero-graphic { display: none; }
  .home-page .tool-copy { padding: 15px; }
  .home-page .tool-entry p { min-height: 39px; }
}
@media (max-width: 800px) {
  .home-sidebar { display: none; }
  .home-workspace { margin-left: 0; }
  .home-page .topbar { min-height: 72px; padding: 8px 24px; gap: 8px; }
  .home-page .home-mobile-brand { display: inline-flex; flex-shrink: 0; font-size: 25px; }
  .home-page .top-actions { width: auto; gap: 8px; }
  .home-page .top-actions .home-price-link { display: none; }
  .home-page .language-switch { padding-left: 0; border: 0; }
  .home-page .page-shell { padding: 24px; }
  .home-page .home-hero { min-height: 200px; }
  .home-page .home-hero h1 { font-size: 37px; }
  .home-page .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .tool-cover { height: 134px; }
  .home-page .tool-entry p { min-height: 20px; }
  .home-page .home-section-head p { max-width: 150px; font-size: 10px; text-align: right; }
  .home-mobile-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
  .home-mobile-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 12px; }
  .home-mobile-nav a:first-child { border-color: var(--ink); background: var(--ink); color: #fff; }
}
@media (max-width: 540px) {
  .home-page .topbar { flex-wrap: wrap; min-height: 68px; padding: 8px 18px; }
  .home-page .home-mobile-brand { gap: 7px; font-size: 24px; }
  .home-mobile-brand .home-mark { width: 23px; height: 23px; }
  .home-mobile-brand .home-mark svg { width: 17px; height: 17px; }
  .home-page .top-actions { flex: 1; gap: 8px; font-size: 11px; }
  .home-page .home-history-link svg { display: none; }
  .home-page .language-switch { gap: 0; }
  .home-page .account-signin { min-width: 44px; padding: 0 8px; font-size: 11px; }
  .home-page .page-shell { padding: 18px; }
  .home-page .home-hero { align-items: flex-start; min-height: 217px; padding: 24px 21px; }
  .home-page .eyebrow { margin-bottom: 19px; font-size: 9px; letter-spacing: 1.2px; }
  .home-page .home-hero h1 { margin-bottom: 14px; font-size: 34px; line-height: 1.32; letter-spacing: -1px; }
  .home-page .home-hero h1 span { display: block; }
  .home-page .hero-copy { max-width: 290px; font-size: 12px; line-height: 1.8; }
  .home-page .home-section-head { align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 23px 0 15px; }
  .home-section-title { gap: 9px; }
  .home-page .home-section-head h2 { font-size: 18px; }
  .home-page .home-section-head p { max-width: none; font-size: 10px; line-height: 1.6; text-align: left; }
  .home-total { font-size: 9px; }
  .home-page .tool-grid { grid-template-columns: 1fr; gap: 13px; }
  .home-page .tool-entry { display: grid; grid-template-columns: 115px minmax(0, 1fr); min-height: 154px; }
  .home-page .tool-cover { height: 100%; }
  .home-page .tool-cover img { object-position: 78% center; }
  .home-page .tool-entry:first-child img { object-position: 78% 27%; }
  .home-page .tool-entry:nth-child(n+3) img { object-position: 50% center; }
  .home-tool-id { top: 7px; left: 7px; padding: 4px 5px; font-size: 9px; }
  .home-page .tool-copy { padding: 15px 14px 13px; }
  .home-page .tool-entry h3 { font-size: 17px; }
  .home-page .tool-type { padding: 3px 4px; font-size: 8px; letter-spacing: .5px; }
  .home-page .tool-entry p { min-height: 40px; font-size: 12px; line-height: 1.7; }
  .home-page .open-tool { margin-top: auto; padding-top: 13px; font-size: 11px; }
  .home-page .open-tool svg { width: 15px; height: 15px; }
  .home-flow-card { min-height: 230px; padding: 24px; }
  .home-flow-card li, .home-flow-note { font-size: 12px; }
  .home-bottom-strip { align-items: flex-start; padding-top: 16px; font-size: 10px; }
  .home-bottom-strip > span { max-width: 190px; }
  .home-bottom-strip a { flex-shrink: 0; font-size: 10px; }
  .home-mobile-nav { margin-top: 15px; }
  .home-mobile-nav a { padding: 10px 12px; font-size: 11px; }
  .home-page .home-foot { gap: 12px; }
}
@media (max-width: 374px) {
  .home-page .top-actions { flex-basis: 100%; justify-content: space-between; }
  .home-page .home-hero h1 { font-size: 29px; }
  .home-page .tool-entry { grid-template-columns: 96px minmax(0, 1fr); }
  .home-tool-heading { flex-wrap: wrap; }
}
@media (min-width: 1100px) {
  .home-page.history-open .home-hero-graphic { display: none; }
  .home-page.history-open .home-breadcrumb { display: none; }
  .home-page.history-open .top-actions { width: 100%; }
  .home-page.history-open .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page a, .home-page button { transition: none; }
}

/* Shared navigation on the tool and account pages. */
.site-sidebar-ready .home-sidebar a { color: var(--ink); text-decoration: none; }
.site-sidebar-ready .home-sidebar .brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 800 27px/1 Arial, sans-serif; letter-spacing: -1.1px; }
.site-sidebar-ready .home-sidebar .home-side-nav a.active { color: #fff; }
.site-sidebar-ready .home-sidebar .home-side-nav a.active .home-number { color: #fff; }
.site-sidebar-ready:not(.home-page) { padding-left: 216px; }
.site-sidebar-ready:not(.home-page) .topbar { justify-content: flex-start; gap: 16px; }
.site-sidebar-ready:not(.home-page) .topbar > .brand { display: none; }
.site-sidebar-ready:not(.home-page) .top-actions { margin-left: auto; }
.site-sidebar-ready[data-tool] .tool-switcher { display: none; }
.site-sidebar-toggle, .site-sidebar-close {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink);
}
.site-sidebar-toggle:hover, .site-sidebar-close:hover { border-color: var(--primary); color: var(--primary); }
.site-sidebar-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.site-sidebar-close { display: none; }
.site-sidebar-backdrop { display: none; }

.site-sidebar-collapsed .home-sidebar { width: 64px; padding: 24px 10px; }
.site-sidebar-collapsed .home-sidebar .brand { justify-content: center; gap: 0; font-size: 0; }
.site-sidebar-collapsed .home-tagline, .site-sidebar-collapsed .home-nav-label, .site-sidebar-collapsed .home-sidebar-note { display: none; }
.site-sidebar-collapsed .home-side-nav { margin-top: 24px; }
.site-sidebar-collapsed .home-side-nav a { justify-content: center; width: 44px; padding: 0; }
.site-sidebar-collapsed .home-side-nav a > span:not(.home-number) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-sidebar-collapsed .home-side-nav .home-number { width: auto; }
.site-sidebar-collapsed .home-side-nav a.active .home-number { color: #fff; }
.site-sidebar-collapsed .home-side-nav .home-side-pricing { padding-top: 24px; }
.site-sidebar-collapsed .home-side-nav .home-side-pricing-text { display: none; }
.site-sidebar-collapsed .home-side-nav a[href="/invite"]::before { content: "✦"; font-size: 20px; }
.site-sidebar-collapsed .home-workspace { margin-left: 64px; }
.site-sidebar-collapsed:not(.home-page) { padding-left: 64px; }
.site-sidebar-collapsed:not(.home-page) .topbar > .brand { display: inline-flex; }

@media (max-width: 1200px) and (min-width: 801px) {
  .site-sidebar-ready[data-tool] .workbench { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1120px) and (min-width: 801px) {
  .site-sidebar-ready:not(.home-page):not(.site-sidebar-collapsed) { padding-left: 185px; }
}
@media (max-width: 800px) {
  .site-sidebar-ready:not(.home-page), .site-sidebar-collapsed:not(.home-page) { padding-left: 0; }
  .site-sidebar-collapsed .home-workspace { margin-left: 0; }
  .site-sidebar-ready .home-sidebar {
    display: flex; width: min(280px, calc(100vw - 48px)); padding: 24px 20px;
    z-index: 72; visibility: hidden; transform: translateX(-100%);
    transition: transform 180ms ease, visibility 180ms ease;
  }
  .site-sidebar-mobile-open .home-sidebar { visibility: visible; transform: none; }
  .site-sidebar-ready:not(.home-page) .topbar > .brand { display: inline-flex; }
  .site-sidebar-ready .site-sidebar-close { position: absolute; top: 24px; right: 16px; display: grid; }
  .site-sidebar-mobile-open { overflow: hidden; }
  .site-sidebar-mobile-open .site-sidebar-backdrop { position: fixed; inset: 0; z-index: 71; display: block; background: rgba(21, 32, 47, .45); }
}
@media (max-width: 540px) {
  .site-sidebar-ready:not(.home-page) .topbar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .site-sidebar-ready:not(.home-page) .top-actions { flex: 1 1 100%; justify-content: flex-end; min-width: 0; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-sidebar-ready .home-sidebar { transition: none; }
}
