/* GoSeller free tools (/tools). Uses the --gs-* tokens from goseller-landing.css */
.gs-tool-hero { padding: 56px 0 18px; background: var(--gs-gradient-soft); }
.gs-tool-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); line-height: 1.12; margin: 10px 0 10px; color: var(--gs-ink); letter-spacing: -.02em; }
.gs-tool-sub { max-width: 680px; color: var(--gs-body); font-size: 1.05rem; margin: 0; }
.gs-crumbs { font-size: .85rem; color: var(--gs-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.gs-crumbs a { color: var(--gs-primary); text-decoration: none; }
.gs-tool-main { padding: 18px 0 36px; }
.gs-tool-card { background: #fff; border: 1px solid var(--gs-line); border-radius: var(--gs-radius-lg); box-shadow: var(--gs-shadow); padding: 28px; }
.gs-t-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.gs-t-form { display: grid; gap: 16px; }
.gs-t-field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--gs-ink); }
.gs-t-field[hidden], .gs-t-rows [hidden], .gs-t-note[hidden], .gs-t-error[hidden] { display: none !important; }
.gs-t-field input, .gs-t-field select, .gs-t-field textarea, .gs-t-link {
    width: 100%; font: inherit; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--gs-line);
    border-radius: var(--gs-radius-sm); background: #fff; color: var(--gs-ink); min-height: 46px; box-sizing: border-box;
}
.gs-t-field input:focus, .gs-t-field select:focus, .gs-t-field textarea:focus { outline: 2px solid var(--gs-primary); outline-offset: 1px; border-color: transparent; }
.gs-t-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-t-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gs-t-row2--cc { grid-template-columns: 110px 1fr; }
.gs-t-seg { display: flex; gap: 6px; background: var(--gs-bg-soft); padding: 4px; border-radius: 14px; }
.gs-t-seg button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .88rem; padding: 10px 8px; border-radius: 10px; color: var(--gs-body); cursor: pointer; min-height: 44px; }
.gs-t-seg button.is-on { background: #fff; color: var(--gs-primary); box-shadow: var(--gs-shadow-sm); }
.gs-t-result { background: var(--gs-bg-tint); border-radius: var(--gs-radius); padding: 22px; display: grid; gap: 14px; }
.gs-t-big small, .gs-t-lbl { display: block; font-size: .85rem; color: var(--gs-muted); font-weight: 600; }
.gs-t-big b { display: block; font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--gs-primary-700); letter-spacing: -.02em; overflow-wrap: anywhere; }
.gs-t-rows { margin: 0; display: grid; gap: 0; }
.gs-t-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(91, 61, 245, .14); font-size: .95rem; }
.gs-t-rows dt { color: var(--gs-body); } .gs-t-rows dd { margin: 0; font-weight: 700; color: var(--gs-ink); text-align: right; overflow-wrap: anywhere; }
.gs-t-note { margin: 0; font-size: .85rem; color: var(--gs-muted); }
.gs-t-error { margin: 0; font-size: .88rem; color: #b91c1c; font-weight: 600; }
.gs-t-copy { justify-self: start; }
.gs-t-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-t-qr { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 10px; max-width: 260px; min-height: 120px; }
.gs-t-qr svg { width: 100%; height: auto; display: block; }
.gs-t-link { font-size: .9rem; }
.gs-tool-cta { padding: 10px 0 30px; }
.gs-tool-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--gs-radius); background: var(--gs-gradient); color: #fff; }
.gs-tool-cta-box strong { display: block; font-size: 1.1rem; } .gs-tool-cta-box span { opacity: .9; font-size: .92rem; }
.gs-tool-cta-box .gs-btn { background: #fff; color: var(--gs-primary-700); }
.gs-tool-copy { padding: 20px 0 40px; }
.gs-tool-copy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.gs-tool-copy h2, .gs-tool-related h2 { font-size: 1.35rem; color: var(--gs-ink); margin: 26px 0 10px; }
.gs-tool-copy h2:first-child { margin-top: 0; }
.gs-tool-copy p, .gs-tool-steps { color: var(--gs-body); line-height: 1.7; margin: 0; }
.gs-tool-steps { padding-left: 20px; }
.gs-tool-related { padding: 0 0 56px; }
.gs-tools-group { font-size: 1.2rem; color: var(--gs-ink); margin: 26px 0 14px; }
.gs-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gs-tools-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gs-tools-card:hover { transform: translateY(-2px); box-shadow: var(--gs-shadow); }
.gs-tools-card strong { color: var(--gs-ink); } .gs-tools-card span { color: var(--gs-body); font-size: .92rem; }
@media (max-width: 860px) {
    .gs-t-grid, .gs-tool-copy-grid { grid-template-columns: 1fr; }
    .gs-tool-card { padding: 18px; }
    .gs-tool-hero { padding-top: 34px; }
    .gs-t-seg { flex-wrap: wrap; }
}
@media (max-width: 420px) { .gs-t-row3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .gs-t-row2--cc { grid-template-columns: 88px 1fr; } }

/* ---- phase 2: name generator + invoice ---- */
.gs-t-names { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gs-t-names li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; }
.gs-t-names .n { font-weight: 700; color: var(--gs-ink); overflow-wrap: anywhere; }
.gs-t-names .b { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gs-t-names .b a { font-size: .8rem; color: var(--gs-primary); text-decoration: none; white-space: nowrap; }
.gs-t-star { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: #cbd0dc; cursor: pointer; min-width: 40px; min-height: 40px; }
.gs-t-star.is-on { color: var(--gs-amber); }
.gs-t-names--fav { margin-bottom: 10px; }
.gs-t-check { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--gs-body); }
.gs-t-check input { width: 18px; height: 18px; }
.gs-t-seg--3 button { padding-left: 4px; padding-right: 4px; }
.gs-inv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.gs-inv-sec { display: grid; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--gs-line); }
.gs-inv-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.gs-inv-sec h3 { margin: 0; font-size: 1rem; color: var(--gs-ink); }
.gs-inv-items { display: grid; gap: 12px; }
.gs-inv-item { display: grid; grid-template-columns: 1fr 80px 70px 90px 70px 40px; gap: 8px; align-items: end; padding: 12px; background: var(--gs-bg-soft); border-radius: 12px; }
.gs-inv-item .gs-inv-d { grid-column: 1 / -1; }
.gs-inv-item .gs-t-field { grid-column: auto; }
.gs-inv-del { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 10px; min-height: 46px; font-size: 1.3rem; cursor: pointer; }
.gs-inv-side { position: sticky; top: 90px; display: grid; gap: 10px; }
.gs-inv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-inv-preview { border: 1px solid var(--gs-line); border-radius: 12px; overflow: auto; background: #fff; box-shadow: var(--gs-shadow-sm); max-height: 80vh; }
@media (max-width: 960px) { .gs-inv { grid-template-columns: 1fr; } .gs-inv-side { position: static; } }
@media (max-width: 520px) {
    .gs-inv-item { grid-template-columns: 1fr 1fr 1fr; }
    .gs-inv-item .gs-inv-d { grid-column: 1 / -1; }
    .gs-inv-del { grid-column: 1 / -1; min-height: 40px; font-size: 1rem; }
    .gs-t-names .b a { display: none; }
    .gs-t-names--fav .b a { display: inline; }
}

/* ---- phase 3: logo + poster ---- */
.gs-t-color { padding: 4px; height: 46px; cursor: pointer; }
.gs-lg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.gs-lg-ic { border: 1.5px solid var(--gs-line); background: #fff; border-radius: 12px; min-height: 46px; display: grid; place-items: center; color: var(--gs-ink); cursor: pointer; }
.gs-lg-ic.is-on { border-color: var(--gs-primary); background: var(--gs-primary-050); color: var(--gs-primary); }
.gs-lg-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-lg-sw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--gs-line); cursor: pointer; }
.gs-lg-stage { background: #fff; border-radius: 14px; overflow: hidden; aspect-ratio: 8 / 5; }
.gs-lg-stage svg { width: 100%; height: 100%; display: block; }
.gs-lg-stage.is-checker { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.gs-ps-canvas { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: var(--gs-shadow-sm); }
@media (max-width: 860px) { .gs-ps-canvas { max-height: none; } }

/* ---- phase 4: product photo tool ---- */
[data-step][hidden], .gs-pp-canvas[hidden], .gs-pp-empty[hidden], .gs-t-progress[hidden], .gs-pp-color[hidden] { display: none !important; }
.gs-pp-empty { display: grid; place-items: center; min-height: 260px; border: 2px dashed rgba(91, 61, 245, .3); border-radius: 14px; color: var(--gs-muted); text-align: center; padding: 16px; }
.gs-pp-canvas { background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.gs-t-progress { height: 8px; border-radius: 6px; background: var(--gs-line); overflow: hidden; }
.gs-t-progress i { display: block; height: 100%; width: 0; background: var(--gs-gradient); transition: width .3s; }
.gs-pp-color { height: 40px; width: 70px; padding: 2px; }
