/* PinPointQR - shared styles for the generator, QR type pages and the wide footer.
   Loaded on every page built with includes/layout.php, after indexpagecss.css
   (which provides the colour variables, header, modals and base typography). */

.skip-link {
    position: absolute;
    top: -80px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ------------------------------------------------------------------ page sections */

.tool-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) 4px;
}

.tool-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
}

.tool-hero .hero-text {
    margin: 0;
    max-width: 760px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.trust-row li {
    padding: 7px 12px;
    border: 1px solid rgba(8, 127, 115, 0.22);
    border-radius: 999px;
    background: rgba(8, 127, 115, 0.07);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.tool-card {
    border: 1px solid rgba(220, 228, 234, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.content-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(220, 228, 234, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.content-card > h2 {
    margin-bottom: 18px;
    font-size: clamp(24px, 2.8vw, 34px);
}

.content-card p,
.content-card li {
    color: #3b4558;
    font-size: 16px;
    line-height: 1.65;
}

.breadcrumbs {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumbs a {
    color: var(--brand-dark);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding: 18px 18px 18px 60px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.tips-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.faq-list summary {
    padding: 16px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    list-style-position: inside;
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--line);
}

.faq-list details p {
    margin: 0;
    padding: 14px 18px 18px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.type-grid a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.type-grid a:hover,
.type-grid a:focus-visible {
    border-color: var(--brand);
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

.type-grid strong {
    font-size: 16px;
}

.type-grid span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-columns article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.feature-columns h3 {
    margin-top: 0;
}

.feature-columns p {
    margin: 0;
    font-size: 15px;
}

.promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 20px;
    align-items: center;
}

.promo-card p {
    margin: 8px 0 0;
}

/* ------------------------------------------------------------------ studio */

.studio {
    padding: clamp(14px, 2.4vw, 24px);
}

.studio [hidden],
.studio-output-card [hidden],
.dash-card [hidden] {
    display: none !important;
}

.studio-noscript,
.studio-loading {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

/* Keep the generator's space while its script loads, so the page below it doesn't jump. */
[data-qr-studio] > .studio-loading {
    min-height: 720px;
}

@media (max-width: 980px) {
    [data-qr-studio] > .studio-loading {
        min-height: 900px;
    }
}

[data-qr-bulk] > .studio-loading,
[data-qr-scanner] > .studio-loading,
[data-barcode-studio] > .studio-loading {
    min-height: 600px;
}

.studio-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

/* category tabs: Popular · Payments · Social media */
.studio-group-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--soft);
}

.studio .studio-group-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.studio .studio-group-tab:hover {
    color: var(--ink);
}

.studio .studio-group-tab[aria-selected="true"] {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.14);
}

.studio .studio-group-tab:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.studio-group-count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.07);
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

/* a dot on the category that holds the type you are editing */
.studio .studio-group-tab.has-selection::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.studio-type-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.studio .studio-tab {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.studio .studio-tab:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.studio .studio-tab.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 20px;
    align-items: start;
}

.studio-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.studio-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.studio-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

details.studio-panel > summary {
    cursor: pointer;
    list-style: none;
}

details.studio-panel > summary::-webkit-details-marker {
    display: none;
}

details.studio-panel > summary::after {
    content: "+";
    margin-left: auto;
    color: var(--muted);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

details.studio-panel[open] > summary::after {
    content: "–";
}

details.studio-panel[open] > summary {
    border-bottom: 1px solid var(--line);
}

.studio-step {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.studio .studio-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.studio-summary-hint {
    color: var(--muted);
    font-size: 14px;
}

.studio-panel-head .studio-link-button {
    margin-left: auto;
}

.studio-form {
    display: flex;
    /* signupcss.css makes every <form> a column; the generator form lays fields out in rows */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 18px 18px;
}

.studio-field {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.studio-field--half {
    flex: 1 1 calc(50% - 7px);
    min-width: 180px;
}

.studio-field > label,
.studio-fieldset legend {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.studio input[type="text"],
.studio input[type="url"],
.studio input[type="email"],
.studio input[type="tel"],
.studio input[type="datetime-local"],
.studio select,
.studio textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.studio textarea {
    min-height: 90px;
    resize: vertical;
}

.studio input:focus,
.studio select:focus,
.studio textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.13);
}

.studio [aria-invalid="true"] {
    border-color: var(--danger);
}

.studio-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.studio-error {
    margin: 0;
    color: var(--danger);
    font-size: 13px;
    font-weight: 750;
}

.studio-check {
    display: flex;
    flex: 1 1 100%;
    flex-flow: row wrap;
    align-items: center;
    gap: 8px;
}

.studio-check > label {
    font-size: 14px;
    font-weight: 650;
}

.studio-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--brand);
}

.studio-check .studio-help,
.studio-check .studio-error {
    flex-basis: 100%;
}

.studio-field--action {
    flex: 1 1 100%;
}

.studio .studio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.studio .studio-btn:hover:not(:disabled) {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.studio .studio-btn--primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 24px rgba(8, 127, 115, 0.22);
}

.studio .studio-btn--primary:hover:not(:disabled) {
    background: var(--brand-dark);
}

.studio .studio-btn--small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

.studio .studio-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.studio .studio-link-button {
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--brand-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.studio .studio-link-button:disabled {
    color: var(--muted);
    cursor: not-allowed;
    text-decoration: none;
}

/* design panel */

.studio-design-body {
    display: grid;
    gap: 16px;
    padding: 16px 18px 18px;
}

.studio-fieldset {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.studio-fieldset legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.studio-design-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.studio-field--color input[type="color"] {
    width: 100%;
    height: 46px;
    padding: 4px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.studio-field--color input[type="color"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.studio-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.studio .studio-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.studio-file-input:focus-visible + .studio-logo-name {
    outline: 2px solid var(--brand);
}

.studio-logo-name {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.studio-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio input[type="range"] {
    flex: 1;
    accent-color: var(--brand);
}

.studio-range output {
    min-width: 82px;
    color: var(--muted);
    font-size: 14px;
}

.studio-design-foot {
    display: flex;
    justify-content: flex-end;
}

.studio-design-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-frame-options {
    display: grid;
    gap: 12px;
}

.preset-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
}

.studio .preset-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.studio .preset-button:hover,
.studio .preset-button.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.12);
}

.preset-thumb {
    display: block;
    width: 48px;
    height: 48px;
}

.preset-thumb img {
    display: block;
    width: 48px;
    height: 48px;
}

.preset-name {
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

/* output */

.studio-output {
    position: sticky;
    top: 92px;
}

.studio-output-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.studio-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 8px;
    background:
        linear-gradient(45deg, #f1f4f7 25%, transparent 25%, transparent 75%, #f1f4f7 75%),
        linear-gradient(45deg, #f1f4f7 25%, transparent 25%, transparent 75%, #f1f4f7 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.studio-preview svg,
.studio-preview canvas {
    display: block;
    width: 100%;
    height: auto;
}

.studio-preview.has-image {
    aspect-ratio: auto;
}

.studio-preview-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

/* print templates dialog */

.print-dialog {
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.print-dialog::backdrop {
    background: rgba(23, 32, 51, 0.58);
}

.print-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.print-head h2 {
    font-size: 20px;
}

.print-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.print-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    padding: 20px;
}

.print-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.print-form .studio-field > span {
    font-size: 14px;
    font-weight: 800;
}

.print-form select,
.print-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    font-size: 15px;
}

.print-form input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
}

.print-texts {
    display: grid;
    gap: 12px;
}

.print-form [hidden] {
    display: none !important;
}

.print-form .studio-btn {
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.print-preview-wrap {
    align-self: start;
    padding: 10px;
    border-radius: 8px;
    background: #e5e7eb;
}

.print-preview {
    display: block;
    width: 100%;
    min-height: 200px;
    border: 0;
    background: #fff;
}

@media (max-width: 760px) {
    .print-body {
        grid-template-columns: 1fr;
    }
}

.studio-placeholder {
    position: relative;
    width: 70%;
    aspect-ratio: 1;
    opacity: 0.55;
}

.studio-placeholder span {
    position: absolute;
    width: 30%;
    aspect-ratio: 1;
    border: 7px solid #c7d1dc;
    border-radius: 6px;
}

.studio-placeholder span:nth-child(1) { top: 0; left: 0; }
.studio-placeholder span:nth-child(2) { top: 0; right: 0; }
.studio-placeholder span:nth-child(3) { bottom: 0; left: 0; }
.studio-placeholder span:nth-child(4) {
    right: 12%;
    bottom: 12%;
    width: 22%;
    border: 0;
    background: repeating-linear-gradient(90deg, #c7d1dc 0 6px, transparent 6px 12px);
}

.studio-status {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.studio-status.is-ok {
    color: var(--brand-dark);
    font-weight: 750;
}

.studio-status.is-error {
    color: var(--danger);
    font-weight: 750;
}

.studio-warnings {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 10px 12px 10px 28px;
    border: 1px solid #f3d7a0;
    border-radius: 7px;
    background: #fff8ea;
    color: #7a4b00;
    font-size: 13px;
    line-height: 1.45;
}

.studio-download {
    display: grid;
    gap: 10px;
}

.studio-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
}

.studio .studio-size-select {
    width: auto;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 14px;
}

.studio-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.studio-extra-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.studio-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.studio-promises li::before {
    content: "✓ ";
    color: var(--brand);
    font-weight: 900;
}

.studio-data summary {
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.studio-data-text {
    max-height: 180px;
    margin: 8px 0 0;
    padding: 10px;
    overflow: auto;
    border-radius: 6px;
    background: var(--soft);
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.studio-print-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border: 0;
}

/* ------------------------------------------------------------------ bulk generator */

.studio .bulk-input {
    min-height: 200px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
}

.bulk-summary {
    flex: 1 1 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.bulk-summary.is-ok {
    background: rgba(8, 127, 115, 0.08);
    color: var(--brand-dark);
}

.bulk-summary.is-warning {
    background: #fff8ea;
    color: #7a4b00;
}

.bulk-summary.is-error {
    background: #fdecea;
    color: var(--danger);
}

.bulk-problems {
    flex: 1 1 100%;
    max-height: 180px;
    margin: 0;
    padding: 10px 12px 10px 28px;
    overflow: auto;
    border: 1px solid #f3d7a0;
    border-radius: 7px;
    color: #7a4b00;
    font-size: 13px;
    line-height: 1.5;
}

.bulk-preview-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.bulk-progress {
    width: 100%;
    height: 10px;
    accent-color: var(--brand);
}

.studio .studio-download > .studio-btn--primary {
    width: 100%;
}

/* ------------------------------------------------------------------ scanner */

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

.scanner-body {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.scanner-video-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #111827;
}

.scanner-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-target {
    position: absolute;
    inset: 18%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(17, 24, 39, 0.35);
    pointer-events: none;
}

.scanner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scanner-drop {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    padding: 24px;
    border: 2px dashed #c7d1dc;
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
}

.scanner-drop strong {
    color: var(--ink);
    font-size: 18px;
}

.scanner-drop.is-over,
.scanner-drop:focus-visible {
    border-color: var(--brand);
    background: rgba(8, 127, 115, 0.06);
    outline: none;
}

.scanner-results {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.scanner-results:empty {
    display: none;
}

.scanner-kind {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
}

.scanner-fields {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.scanner-fields dt {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.scanner-fields dd {
    margin: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.scanner-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scanner-result-actions a {
    text-decoration: none;
}

/* ------------------------------------------------------------------ barcode generator */

.bc-preview {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 12px;
    overflow: auto;
    border-radius: 8px;
    background:
        linear-gradient(45deg, #f1f4f7 25%, transparent 25%, transparent 75%, #f1f4f7 75%),
        linear-gradient(45deg, #f1f4f7 25%, transparent 25%, transparent 75%, #f1f4f7 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.bc-preview svg {
    max-width: 100%;
    height: auto;
}

.bc-note {
    color: var(--brand-dark);
    font-weight: 700;
}

.bc-gs1 {
    flex: 1 1 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 7px;
    background: var(--soft);
    color: #3b4558;
    font-size: 13px;
    line-height: 1.5;
}

.bc-gs1 a {
    color: var(--brand-dark);
    font-weight: 800;
}

@media (max-width: 980px) {
    .scanner-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ account: generator buttons, dashboard, report */

.studio-account {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.studio-account-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-account-buttons .studio-btn {
    flex: 1 1 auto;
}

.dash-heading {
    margin: 26px 0 12px;
    font-size: 22px;
}

.dash-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f3d7a0;
    border-radius: 8px;
    background: #fff8ea;
    color: #7a4b00;
}

.dash-banner p {
    flex: 1 1 280px;
    margin: 0;
}

.studio .dash-create {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.dash-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    gap: 12px;
    align-items: end;
}

.dash-list {
    display: grid;
    gap: 12px;
}

.dash-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.dash-card--plain {
    grid-template-columns: minmax(0, 1fr);
}

.dash-card.is-new {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.13);
}

.dash-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.dash-body h3 {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.dash-meta,
.dash-line {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dash-line a {
    color: var(--brand-dark);
}

.dash-target {
    color: var(--ink);
}

.dash-state {
    font-weight: 800;
}

.dash-state.is-active {
    color: var(--brand-dark);
}

.dash-state.is-paused {
    color: #7a4b00;
}

.dash-state.is-blocked,
.dash-state.is-expired,
.dash-ending {
    color: var(--danger);
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
}

.dash-edit {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}


.q-target {
    padding: 12px;
    border-radius: 7px;
    background: var(--soft);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-form {
    display: grid;
    gap: 12px;
    max-width: 560px;
}

.report-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.report-form input,
.report-form select,
.report-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    font: inherit;
}

.report-trap {
    position: absolute;
    left: -9999px;
}

@media (max-width: 700px) {
    .dash-create-row {
        grid-template-columns: 1fr;
    }

    .dash-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .dash-card--plain {
        grid-template-columns: minmax(0, 1fr);
    }
}

.legal {
    max-width: 900px;
    margin: 0 auto;
}

.content-card.legal > h1 {
    font-size: clamp(32px, 4vw, 44px);
}

.content-card.legal > h2 {
    margin: 26px 0 8px;
    font-size: 21px;
}

.legal-date {
    color: var(--muted);
    font-size: 14px;
}

.legal ul {
    margin: 0;
    padding-left: 22px;
}

.legal-table-wrap {
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.content-card .report-form button[type="submit"] {
    justify-self: start;
}

/* The × on the login and sign-up pop-ups is a real button, without the page's button look. */
.modal-content button.close,
.modal-content button.close:hover {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    min-height: 0;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal-content button.close:hover {
    background: rgba(23, 32, 51, 0.07);
}

/* ------------------------------------------------------------------ guides */

.guide {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.content-card.guide > .breadcrumbs {
    margin-bottom: 14px;
}

.content-card.guide > h1 {
    font-size: clamp(30px, 4vw, 42px);
}

.content-card.guide > h2 {
    margin: 30px 0 8px;
    font-size: 22px;
}

.guide-lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.guide p,
.guide li {
    line-height: 1.65;
}

.guide ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.guide li + li {
    margin-top: 5px;
}

.guide-table {
    margin-top: 10px;
    overflow-x: auto;
}

.guide-table table {
    width: 100%;
    border-collapse: collapse;
}

.guide-table th,
.guide-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.guide-updated {
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
}

/* ------------------------------------------------------------------ footer type links */

.site-footer--wide {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.site-footer--wide h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
}

.site-footer--wide nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.site-footer--wide nav a {
    padding: 5px 0;
}

.site-footer--wide nav a:hover {
    background: none;
    text-decoration: underline;
}

.site-footer--wide .footer-langs {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.footer-langs a[aria-current] {
    color: var(--ink);
    font-weight: 900;
    text-decoration: underline;
}

.footer-copyright {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 980px) {
    .studio-layout {
        grid-template-columns: 1fr;
    }

    .studio-output {
        position: static;
    }

    .studio-output-card {
        max-width: 520px;
        margin: 0 auto;
    }

    .steps-list,
    .feature-columns {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer--wide {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .studio-design-row,
    .steps-list,
    .feature-columns,
    .promo-card {
        grid-template-columns: 1fr;
    }

    .studio-field--half {
        flex-basis: 100%;
    }

    .studio-panel-head {
        flex-wrap: wrap;
    }

    .site-footer--wide {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .studio-buttons {
        grid-template-columns: 1fr;
    }

    .studio-group-tabs {
        display: flex;
        align-self: stretch;
    }

    .studio .studio-group-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 9px 8px;
        font-size: 13.5px;
    }

    .studio-group-count {
        display: none;
    }
}

@media (max-width: 350px) {
    .studio-group-tabs {
        gap: 2px;
    }

    .studio .studio-group-tab {
        padding: 9px 5px;
        font-size: 13px;
    }

    .studio .studio-group-tab.has-selection::after {
        top: 3px;
        right: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio *,
    .type-grid a {
        transition: none !important;
    }
}

/* ------------------------------------------------------------------ cookie notice (js/consent.js) */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 45; /* under the login pop-ups (50) */
    display: flex;
    align-items: center;
    gap: 16px 24px;
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.cookie-banner a {
    color: var(--brand-dark);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

/* Both buttons look the same: declining must be as easy as accepting. */
.cookie-banner button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-dark);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: var(--ink);
}

.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .cookie-banner p {
        font-size: 14px;
        line-height: 1.4;
    }

    .cookie-banner-actions button {
        flex: 1;
    }
}

@media print {
    .cookie-banner {
        display: none;
    }
}

/* Keeps the map's pins and controls inside the map, so they can't sit on top of the notice. */
.map-container {
    isolation: isolate;
}

.address-form-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

/* ------------------------------------------------------------------ phone and small-screen fixes */

/* Page links land below the fixed header, and keyboard focus isn't hidden behind it. */
html {
    scroll-padding-top: 80px;
}

@media (max-width: 980px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* A wide table must scroll inside its card, not make the whole page wider than the screen. */
.content-card {
    min-width: 0;
}

.studio-data summary {
    padding: 6px 0;
}

/* Long questions line up with their first line. */
.faq-list summary {
    position: relative;
    padding-left: 38px;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before {
    content: "▶";
    position: absolute;
    top: 19px;
    left: 18px;
    font-size: 11px;
}

.faq-list details[open] summary::before {
    content: "▼";
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 12px;
    }

    /* Phones zoom the whole page when a smaller text box is tapped. */
    .studio .studio-size-select,
    .studio .bulk-input,
    #textInput {
        font-size: 16px;
    }

    /* The heading stays beside its number, and "Try an example" moves to the next line. */
    .studio-panel-head .studio-panel-title {
        flex: 1 1 calc(100% - 40px);
        min-width: 0;
    }

    .studio-panel-head .studio-link-button {
        margin-left: auto;
    }

    /* The privacy table: each row becomes a small card. */
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td {
        display: block;
        min-width: 0;
        width: auto;
    }

    .legal-table thead {
        display: none;
    }

    .legal-table tr {
        margin-bottom: 12px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .legal-table td {
        padding: 0;
        border: 0;
    }

    .legal-table td:first-child {
        font-size: 16px;
        font-weight: 800;
    }

    .legal-table td + td {
        margin-top: 10px;
    }

    .legal-table td + td::before {
        display: block;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }

    .legal-table td:nth-child(2)::before {
        content: "What we keep";
    }

    .legal-table td:nth-child(3)::before {
        content: "Why";
    }

    .legal-table td:nth-child(4)::before {
        content: "How long";
    }
}

/* ==================================================================
   Current look: calmer type, one card per tool, generator on the first screen.
   Comes last so it refines the rules above.
   ================================================================== */

:root {
    --ink: #111a2c;
    --muted: #586374;
    --line: #e3e8ee;
    --soft: #f4f6f8;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 36px rgba(16, 24, 40, 0.08);
    --soft-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.06);
    --chart-1: #0d9488;
    --chart-2: #6d5bd0;
}

body {
    background: linear-gradient(180deg, #eaf6f3 0, #f6f9f9 340px, #f7f8fa 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h1 {
    max-width: none;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 750;
}

.primary-link,
.secondary-link,
.submit-action,
.genrate-btn,
button[type="submit"] {
    border-radius: 10px;
    font-weight: 750;
}

.primary-link,
.submit-action,
.genrate-btn,
button[type="submit"] {
    box-shadow: none;
}

.page-shell {
    gap: 26px;
    width: min(1160px, calc(100% - 32px));
    padding: 20px 0 56px;
}

/* ------------------------------------------------------------------ header */

.site-header {
    gap: 16px;
    min-height: 64px;
    padding: 10px clamp(16px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.brand {
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand img {
    width: 36px;
    height: 36px;
    filter: none;
}

.site-nav {
    gap: 2px;
}

.site-nav a {
    padding: 8px 11px;
    border-radius: 8px;
    color: #3a4557;
    font-weight: 650;
}

.site-nav a[aria-current="page"] {
    background: rgba(8, 127, 115, 0.09);
    color: var(--brand-dark);
}

.site-nav .nav-cta {
    margin-left: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand-dark);
    box-shadow: none;
}

.site-nav .nav-cta:hover {
    background: var(--ink);
    transform: none;
}

.nav-toggle {
    display: none;
}

@media (max-width: 980px) {
    .site-header {
        position: relative;
        flex-direction: row;
        align-items: center;
        min-height: 58px;
        padding: 8px 14px;
    }

    .js .site-header {
        position: sticky;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .js .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
    }

    .js .nav-toggle:hover {
        background: var(--soft);
    }

    .js .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: auto;
        padding: 8px 14px 14px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .js .site-nav .nav-cta {
        justify-content: center;
        margin: 6px 0 0;
    }
}

@media (max-width: 700px) {
    /* Scrolls away with the page: the generator needs the room. */
    .js .site-header {
        position: relative;
    }
}

/* ------------------------------------------------------------------ page top */

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 0;
    background: none;
    box-shadow: none;
}

/* A link inside a line of text must be recognisable without relying on colour alone. */
.breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tool-hero {
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px;
    text-align: center;
}

.tool-hero h1 {
    max-width: 880px;
    font-size: clamp(27px, 3.4vw, 40px);
    line-height: 1.14;
}

.tool-hero .hero-text,
.hero-text {
    max-width: 720px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.trust-row {
    justify-content: center;
    gap: 6px 20px;
    margin: 0;
}

.trust-row li {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.trust-row li::before {
    content: "✓";
    margin-right: 6px;
    color: var(--brand);
    font-weight: 800;
}

/* ------------------------------------------------------------------ the tool card */

.studio,
.studio.tool-card {
    display: block;
    padding: clamp(14px, 2.2vw, 24px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.studio .icon {
    width: 18px;
    height: 18px;
}

.studio-types {
    gap: 10px;
    margin-bottom: 16px;
}

.studio .studio-group-tab {
    font-weight: 700;
}

.studio .studio-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px 8px 10px;
    border-radius: 10px;
    font-weight: 650;
}

.studio .studio-tab .icon {
    color: var(--brand-dark);
}

.studio .studio-tab.is-active {
    border-color: var(--brand);
    background: rgba(8, 127, 115, 0.1);
    box-shadow: inset 0 0 0 1px var(--brand);
    color: var(--brand-dark);
}

@media (min-width: 981px) {
    .studio-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
        gap: 24px;
    }
}

.studio-main {
    gap: 0;
}

.studio-panel {
    border: 0;
    border-radius: 0;
    background: none;
}

.studio-main > .studio-panel + .studio-panel {
    border-top: 1px solid var(--line);
}

.studio-panel-head {
    padding: 12px 0;
}

.studio-form {
    padding: 0 0 18px;
}

details.studio-panel[open] > summary {
    border-bottom: 0;
}

.studio-design-body {
    gap: 14px;
    padding: 0 0 6px;
}

.studio-step {
    width: 26px;
    height: 26px;
    background: rgba(8, 127, 115, 0.12);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.studio .studio-panel-title {
    font-size: 17px;
    font-weight: 750;
}

.studio-field > label,
.studio-field-label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.studio input[type="text"],
.studio input[type="url"],
.studio input[type="email"],
.studio input[type="tel"],
.studio input[type="datetime-local"],
.studio select,
.studio textarea {
    border-color: #d3dbe4;
    border-radius: 10px;
}

.studio .studio-btn {
    border-radius: 10px;
    font-weight: 750;
}

.studio .studio-btn--primary {
    box-shadow: none;
}

.studio .studio-btn:hover:not(:disabled) {
    transform: none;
}

/* design: one set of choices at a time */
.design-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.design-tabs::-webkit-scrollbar {
    display: none;
}

.studio .design-tab {
    flex: none;
    margin-bottom: -1px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.studio .design-tab:hover {
    background: none;
    color: var(--ink);
}

.studio .design-tab[aria-selected="true"] {
    border-bottom-color: var(--brand);
    color: var(--brand-dark);
}

.studio .design-tab:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.studio-fieldset {
    gap: 14px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.studio .option-button,
.studio .preset-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 44px;
    padding: 10px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.studio .option-button:hover,
.studio .preset-button:hover {
    border-color: var(--brand);
    background: #fff;
}

.studio .option-button[aria-pressed="true"],
.studio .preset-button.is-active {
    border-color: var(--brand);
    background: rgba(8, 127, 115, 0.07);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.option-thumb {
    display: grid;
    place-items: center;
    height: 38px;
    color: var(--ink);
}

.option-name {
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
}

.preset-name {
    font-weight: 650;
}

.studio-field--color input[type="color"] {
    height: 44px;
    border-color: #d3dbe4;
    border-radius: 10px;
}

/* the result */
.studio-output {
    top: 80px;
}

.studio-output-card {
    gap: 12px;
    padding: 16px;
    border: 0;
    border-radius: 14px;
    background: var(--soft);
    box-shadow: none;
}

.studio-preview-wrap {
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.studio-preview {
    max-width: 280px;
}

.studio-account {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.studio-account-title {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

/* ------------------------------------------------------------------ sections below the tool */

.content-card {
    padding: clamp(20px, 3.4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.content-card > h2 {
    margin-bottom: 16px;
    font-size: clamp(22px, 2.4vw, 28px);
}

.content-card > h3 {
    margin: 22px 0 10px;
}

.steps-list {
    gap: 22px;
}

.steps-list li {
    padding: 0 0 0 48px;
    border: 0;
    background: none;
    font-size: 15px;
    line-height: 1.5;
}

.steps-list li::before {
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: rgba(8, 127, 115, 0.12);
    color: var(--brand-dark);
    font-weight: 800;
}

.type-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(8, 127, 115, 0.1);
    color: var(--brand-dark);
}

.type-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 10px;
}

.type-grid a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1px 12px;
    align-content: start;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
}

.type-grid .type-icon {
    grid-row: 1 / span 2;
}

.type-grid strong {
    font-size: 15px;
    font-weight: 700;
}

.type-grid span.type-card {
    font-size: 13.5px;
    line-height: 1.4;
}

.type-grid span.type-icon {
    color: var(--brand-dark);
}

.feature-columns {
    gap: 24px;
}

.feature-columns article {
    padding: 0;
    border: 0;
    background: none;
}

.feature-columns h3 {
    margin: 12px 0 4px;
}

.feature-columns p {
    line-height: 1.5;
}

/* track your scans */
.track-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: center;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 18px;
    background: linear-gradient(135deg, #065f56, #0a4f63);
    color: #fff;
}

.track-band h2 {
    color: #fff;
}

.track-copy p {
    margin: 10px 0 0;
    color: #dcefec;
    font-size: 16px;
    line-height: 1.55;
}

.track-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    font-weight: 650;
}

.track-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.track-points .icon {
    width: 18px;
    height: 18px;
    color: #7fe0d2;
}

.track-band .primary-link {
    background: #fff;
    color: #064e47;
}

.track-band .primary-link:hover {
    background: #e4f5f2;
    color: #064e47;
}

.track-visual {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(3, 40, 40, 0.28);
    color: var(--ink);
}

.track-example {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.track-tiles strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.track-tiles span {
    color: var(--muted);
    font-size: 13px;
}

.track-line {
    display: block;
    width: 100%;
    height: 62px;
    margin: 10px 0;
}

.track-bars {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.track-bars li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
}

.track-bars i {
    display: block;
    height: 8px;
    border-radius: 0 4px 4px 0;
    background: var(--chart-1);
}

.track-bars b {
    font-weight: 700;
    text-align: right;
}

@media (max-width: 860px) {
    .track-band {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ footer */

.site-footer--wide {
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer--wide nav a {
    color: #4b5668;
    font-size: 13.5px;
    font-weight: 600;
}

/* ------------------------------------------------------------------ pages inside an account */

.page-shell--app {
    gap: 16px;
}

.app-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
}

.app-head h1 {
    font-size: clamp(27px, 3.2vw, 36px);
}

.app-head .hero-text {
    margin: 4px 0 0;
}

.dash-card {
    border-radius: 12px;
}

/* analytics */
.analytics {
    display: grid;
    gap: 14px;
    min-width: 0;
    transition: opacity 120ms ease;
}

.analytics.is-loading {
    opacity: 0.55;
}

.analytics [hidden] {
    display: none !important;
}

.analytics-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.analytics-periods {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.analytics .analytics-period {
    min-height: 38px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.analytics .analytics-period:hover {
    background: var(--soft);
    color: var(--ink);
}

.analytics .analytics-period[aria-pressed="true"] {
    background: var(--brand-dark);
    color: #fff;
}

.analytics-code select {
    min-height: 46px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 650;
}

.analytics .analytics-export {
    min-height: 46px;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.analytics .analytics-export:hover {
    border-color: var(--brand);
    background: #fff;
    color: var(--brand-dark);
}

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

.analytics-tile,
.analytics-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
}

.analytics-tile {
    padding: 14px 16px;
    border-radius: 14px;
}

.analytics-tile p {
    margin: 0;
}

.analytics-tile-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.analytics .analytics-tile-value {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.analytics-tile-detail,
.analytics-tile-change {
    margin-top: 4px !important;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.analytics-tile-change.is-up {
    color: var(--brand-dark);
    font-weight: 700;
}

.analytics-tile-change.is-down {
    color: var(--danger);
    font-weight: 700;
}

.analytics-card {
    padding: clamp(16px, 2.4vw, 24px);
    border-radius: 16px;
}

.analytics-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0;
}

.analytics-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.analytics-note {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.analytics-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.analytics-empty p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    line-height: 1.5;
}

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

.analytics-columns > .analytics-card {
    margin: 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 6px 0 8px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.chart-key {
    display: inline-block;
    width: 14px;
    height: 2px;
    margin-right: 6px;
    border-radius: 1px;
    vertical-align: middle;
}

.chart-line,
.chart-hours {
    position: relative;
}

.chart-line {
    border-radius: 8px;
    touch-action: pan-y;
}

.chart-line:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

.chart-line svg {
    display: block;
    max-width: 100%;
}

.chart-grid {
    stroke: #edf0f3;
    stroke-width: 1;
}

.chart-axis {
    fill: #5f6b7c;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.chart-crosshair {
    stroke: #98a2b3;
    stroke-width: 1;
}

.chart-tip {
    position: absolute;
    z-index: 5;
    min-width: 128px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    font-size: 13px;
    pointer-events: none;
}

.chart-tip p {
    margin: 0;
    white-space: nowrap;
}

.chart-tip-title {
    margin-bottom: 3px !important;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.chart-tip-row strong {
    color: var(--ink);
    font-weight: 800;
}

.chart-tip-row span:last-child {
    color: var(--muted);
}

.chart-hours-slots {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 2px;
    align-items: end;
    height: 130px;
    border-bottom: 1px solid #dde3e9;
}

.chart-hours-slot {
    display: flex;
    align-items: flex-end;
    height: 100%;
    border-radius: 4px 4px 0 0;
}

.chart-hours-slot:hover {
    background: var(--soft);
}

.chart-hours-bar {
    display: block;
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: var(--chart-1);
}

.chart-hours-axis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 4px;
    color: #5f6b7c;
    font-size: 12px;
}

.bar-table {
    width: 100%;
    border-collapse: collapse;
}

.bar-table tr:hover {
    background: var(--soft);
}

.bar-label {
    width: 42%;
    max-width: 0;
    padding: 6px 10px 6px 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.bar-flag {
    margin-right: 6px;
}

.bar-cell {
    position: relative;
    padding: 6px 0;
}

.bar {
    display: block;
    height: 10px;
    border-radius: 0 4px 4px 0;
    background: var(--chart-1);
}

.bar-value {
    width: 1%;
    padding: 6px 4px 6px 10px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.analytics .bar-more,
.analytics-table .studio-link-button {
    padding: 4px 2px;
    border: 0;
    background: none;
    color: var(--brand-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.analytics .bar-more:hover,
.analytics-table .studio-link-button:hover {
    background: none;
    color: var(--ink);
}

.analytics-map {
    height: 360px;
    margin: 10px 0 18px;
    overflow: hidden;
    border-radius: 12px;
    background: #aad3df; /* the map's own sea colour, for the space beside the world */
    isolation: isolate;
}

/* The map library's layer order: without it the base map covers anything drawn on it. */
.analytics-map .leaflet-pane { z-index: 400; }
.analytics-map .leaflet-tile-pane { z-index: 200; }
.analytics-map .leaflet-overlay-pane { z-index: 400; }
.analytics-map .leaflet-marker-pane { z-index: 600; }
.analytics-map .leaflet-tooltip-pane { z-index: 650; }

.analytics-map svg {
    max-width: none;
}

.analytics-map .leaflet-tooltip {
    position: absolute;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    color: var(--ink);
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
}

.analytics-map .leaflet-interactive {
    cursor: pointer;
    pointer-events: auto; /* the library switches them off on the layer; each circle needs them back */
}

.analytics-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.analytics-table th,
.analytics-table td {
    padding: 9px 10px 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.analytics-table thead th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.analytics-table tbody th {
    font-weight: 650;
}

.analytics-table td {
    font-variant-numeric: tabular-nums;
}

.analytics-paused {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.analytics .studio-data {
    margin-top: 8px;
}

.analytics .studio-data summary {
    padding: 6px 0;
}

.analytics-footnote {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.analytics-footnote p {
    margin: 0 0 4px;
}

.analytics-footnote a {
    color: var(--brand-dark);
    text-decoration: underline;
}

@media (max-width: 860px) {
    .analytics-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .analytics-map {
        height: 280px;
    }
}

@media (max-width: 560px) {
    .analytics-periods {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .analytics .analytics-period {
        padding: 6px 2px;
    }

    .analytics-code,
    .analytics-code select,
    .analytics .analytics-export {
        width: 100%;
        margin-left: 0;
    }

    .analytics .analytics-tile-value {
        font-size: 22px;
    }

    /* Each code becomes a small block, so no column is cut off. */
    .analytics-table--codes thead {
        display: none;
    }

    .analytics-table--codes,
    .analytics-table--codes tbody {
        display: block;
    }

    .analytics-table--codes tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px 10px;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

    .analytics-table--codes tbody th {
        grid-column: 1 / -1;
        padding: 0;
        border: 0;
    }

    .analytics-table--codes td {
        padding: 0;
        border: 0;
        font-weight: 700;
    }

    .analytics-table--codes td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
    }
}

/* ------------------------------------------------------------------ the generator on phones and small tablets */

@media (max-width: 980px) {
    /* Everything becomes one column, in the order you use it: see the code, fill in, design, download. */
    [data-qr-studio] .studio-layout,
    [data-barcode-studio] .studio-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    [data-qr-studio] .studio-main,
    [data-qr-studio] .studio-output,
    [data-qr-studio] .studio-output-card,
    [data-barcode-studio] .studio-main,
    [data-barcode-studio] .studio-output,
    [data-barcode-studio] .studio-output-card {
        display: contents;
    }

    .studio .studio-preview-wrap {
        order: 1;
        align-self: center;
        width: min(100%, 212px);
        padding: 6px;
    }

    .studio .studio-status {
        order: 2;
        margin: -2px 0 0;
    }

    .studio .studio-main > .studio-panel:not(.studio-design) {
        order: 3;
    }

    .studio .studio-main > .studio-design {
        order: 4;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .studio .studio-warnings {
        order: 5;
    }

    .studio .studio-download {
        order: 6;
    }

    .studio .studio-account {
        order: 7;
    }

    .studio .studio-data {
        order: 8;
    }

    .studio .studio-panel-head {
        padding: 6px 0 10px;
    }

    .studio .studio-form {
        padding-bottom: 6px;
    }

    /* While choosing a design, the code stays in sight above the choices. */
    .studio .studio-layout:has(.studio-design[open]) .studio-preview-wrap {
        position: sticky;
        top: 0;
        z-index: 6;
        align-self: stretch;
        width: auto;
        margin: 0 -8px;
        border-radius: 0 0 12px 12px;
    }

    .studio .studio-layout:has(.studio-design[open]) .studio-preview {
        max-width: 136px;
    }

    .js .studio-layout:has(.studio-design[open]) .studio-preview-wrap {
        top: 0;
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    /* The sticky header is on screen on tablets, so the code sits just below it. */
    .studio .studio-layout:has(.studio-design[open]) .studio-preview-wrap,
    .js .studio-layout:has(.studio-design[open]) .studio-preview-wrap {
        top: 58px;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 20px, 1160px);
        gap: 18px;
        padding: 10px 0 36px;
    }

    .tool-hero {
        padding: 4px 4px 0;
    }

    .tool-hero h1 {
        font-size: 25px;
    }

    .tool-hero .hero-text,
    .hero-text {
        font-size: 15px;
    }

    .studio,
    .studio.tool-card {
        padding: 12px;
        border-radius: 14px;
    }

    .studio-types {
        margin-bottom: 12px;
    }

    .studio-group-tabs {
        display: flex;
        align-self: stretch;
    }

    .studio .studio-group-tab {
        flex: 1;
        justify-content: center;
        padding: 9px 6px;
    }

    .studio-group-count {
        display: none;
    }

    /* One row of types to swipe, instead of five rows of buttons. */
    .studio-type-group {
        position: relative;
        flex-wrap: nowrap;
        align-items: stretch;
        margin: 0 -12px;
        padding: 2px 12px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .studio-type-group::-webkit-scrollbar {
        display: none;
    }

    .studio .studio-tab {
        flex: none;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 80px;
        min-height: 66px;
        padding: 8px 4px;
        font-size: 12px;
        line-height: 1.15;
        text-align: center;
    }

    .studio .studio-tab .icon {
        width: 20px;
        height: 20px;
    }

    .studio-design-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-list {
        gap: 16px;
    }

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

    .type-grid a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .type-grid .type-icon {
        width: 34px;
        height: 34px;
    }

    .type-grid strong {
        font-size: 14px;
        line-height: 1.25;
    }

    /* Hidden from sight only: screen readers and search engines still get the description. */
    .type-grid a {
        position: relative;
    }

    .type-grid span.type-card {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .track-points {
        grid-template-columns: minmax(0, 1fr);
    }

    .track-bars li {
        grid-template-columns: 96px minmax(0, 1fr) 30px;
    }
}

/* ------------------------------------------------------------------ analytics: custom dates */

.analytics-toolbar {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.analytics .analytics-range {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-end;
    gap: 10px 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.analytics-range label {
    display: grid;
    gap: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.analytics-range input[type="date"] {
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d3dbe4;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.analytics .analytics-apply {
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-dark);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.analytics .analytics-apply:hover {
    background: var(--ink);
    transform: none;
}

.analytics-range .studio-error {
    flex-basis: 100%;
    margin: 0;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.analytics-range-label {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 560px) {
    .analytics .analytics-period--custom {
        grid-column: 1 / -1;
    }

    .analytics-range label {
        flex: 1 1 130px;
    }

    .analytics-range input[type="date"] {
        width: 100%;
    }

    .analytics .analytics-apply {
        flex: 1 1 100%;
    }
}

/* ------------------------------------------------------------------ list of links: the form in the generator */

.link-rows {
    display: grid;
    gap: 8px;
}

.link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 46px;
    gap: 8px;
    align-items: center;
}

.studio .link-remove {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.studio .link-remove:hover:not(:disabled) {
    border-color: var(--danger);
    background: #fff;
    color: var(--danger);
}

.studio .link-remove:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.studio .link-add {
    align-self: flex-start;
    margin-top: 4px;
}

/* The boxes for each network on a social media page */
.profile-rows {
    display: grid;
    gap: 8px;
}

.profile-row {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.profile-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.studio-hosted {
    display: grid;
    gap: 8px;
}

.studio-hosted .studio-link-button {
    justify-self: center;
    text-align: center;
}

.dash-more {
    margin-top: 10px;
}

.dash-more a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .studio .studio-hosted {
        order: 5;
    }
}

@media (max-width: 700px) {
    .profile-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .link-row {
        grid-template-columns: minmax(0, 1fr) 46px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }

    .link-row input[type="url"] {
        grid-row: 2;
        grid-column: 1 / -1;
    }
}
