
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f4f6;
    color: #0f172a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Top bar */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar .brand {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 13px;
    text-transform: uppercase;
    color: #4b5563;
}

.top-bar .user-info {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar a {
    color: #2563eb;
    text-decoration: none;
}
.top-bar a:hover {
    text-decoration: underline;
}

/* Main layout */
.wrapper {
    max-width: 1200px;
    margin: 24px auto;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 20px;
}

/* Panels */
.left-panel,
.right-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 18px 18px 20px;
	z-index: 1;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.right-panel {
    display: flex;
    flex-direction: column;
}

/* Sections / steps */
.pane {
    border: none;
    background: transparent;
    padding: 12px 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}
.pane:last-of-type {
    border-bottom: none;
}

.pane h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
}


.pane h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.pane h3::after {
    content: "▾";
    font-size: 10px;
    color: #9ca3af;
    margin-left: 8px;
    transition: transform 0.15s ease;
}

.pane.collapsed h3::after {
    transform: rotate(-90deg);
}

.pane-body {
    margin-top: 8px;
}

.pane.collapsed .pane-body {
    display: none;
}

/* Form elements */
.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #4b5563;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

/* Buttons */
button,
.btn {
    border-radius: 999px;
    border: none;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
	text-decoration-line: unset;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

button.secondary,
.btn.secondary {
    background: #e5e7eb;
    color: #111827;
    box-shadow: none;
}
button.secondary:hover,
.btn.secondary:hover {
    background: #d1d5db;
}

/* QR preview */
.qr-preview {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(var(--preview-box-size, 280px), 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
    overflow: hidden;
    outline: 6px solid #ffffff;
    outline-offset: -3px;
    margin-left: auto;
    margin-right: auto;
}

.qr-preview{ position:relative; }
#qrPreview{ position:relative; z-index:2; display:flex; align-items:center; justify-content:center; }
#qrPreview canvas,
#qrPreview svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
#qrFrameOverlay{ position:absolute; inset:0; width:100%; height:100%; z-index: 3; pointer-events:none; }

/* Quality panel */
.quality-panel {
    margin-top: 16px;
    padding: 10px 12px 6px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.quality-panel h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}
.quality-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}
.quality-slider {
    flex: 1;
}
.quality-slider input[type="range"] {
    width: 100%;
}



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

.logo-upload-col {
    flex: 1 1 200px;
	padding-top: 8px;
}

.logo-upload-col label {
    display: block;
}

.logo-upload-col label input[type="file"] {
    display: block;
    margin-top: 4px; /* odstęp między tekstem a inputem */
}

.logo-current {
    flex: 1 1 180px;
    font-size: 12px;
}

.logo-current-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.logo-current-box {
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    margin-bottom: 6px;
    text-align: center;
}

.logo-current-box img {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.logo-placeholder-text {
    color: #9ca3af;
    font-size: 12px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.logo-library {
    margin-top: 4px;
}

.logo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.logo-item {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 6px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.logo-item .logo-thumb {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e5e7eb;
}

.logo-item.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.logo-library .hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.logo-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 8px;
}

.logo-actions-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.logo-remove-bg-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
}

.logo-remove-bg-inline input[type="checkbox"] {
    margin: 0;
}



.frames-group,
.templates-group {
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 980px) {
    .wrapper {
        grid-template-columns: minmax(0, 1fr);
        margin: 16px auto;
        padding: 10px;
    }
    .left-panel,
    .right-panel {
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    }
    .qr-preview {
        --preview-box-size: 240px;
    }
}


/* Eye actions (swap + copy foreground) */
.eye-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-swap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #2563eb;
    cursor: pointer;
    padding: 0;
}

.btn-swap:hover {
    background: #e9e9e9;
	color:#4b5563;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #2563eb;
    font-size: 13px;
    cursor: pointer;
}

.icon-btn:hover {
    background: #e9e9e9;
	color:#4b5563;
}

.icon-swap {
    font-size: 14px;
    line-height: 1;
}

/* Shape tiles */
.shape-group {
    margin-top: 5px;
}

.shape-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.shape-tile {
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shape-tile.active {
    border-color: #007bff;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4);
}

.shape-preview {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
}

/* BODY SHAPES – proste wizualizacje */
.shape-square {
    background: repeating-linear-gradient(
        45deg,
        #222 0,
        #222 2px,
        transparent 2px,
        transparent 4px
    );
}

.shape-dots {
    background-image:
        radial-gradient(#222 2px, transparent 3px);
    background-size: 6px 6px;
}

.shape-rounded {
    border-radius: 6px;
    background: #222;
}

.shape-extra-rounded {
    border-radius: 12px;
    background: #222;
}

.shape-classy {
    background: linear-gradient(45deg, #222 25%, transparent 25%, transparent 50%, #222 50%, #222 75%, transparent 75%, transparent);
    background-size: 6px 6px;
}

.shape-classy-rounded {
    border-radius: 8px;
    background: linear-gradient(45deg, #222 25%, transparent 25%, transparent 50%, #222 50%, #222 75%, transparent 75%, transparent);
    background-size: 6px 6px;
}

/* EYE FRAME – symbolicznie */
.eye-frame-square {
    border: 3px solid #222;
    border-radius: 3px;
}

.eye-frame-rounded {
    border: 3px solid #222;
    border-radius: 50%;
}

.eye-frame-classy,
.eye-frame-classy-rounded {
    border: 3px double #222;
    border-radius: 6px;
}

/* EYE BALL */
.eye-ball-square {
    width: 14px;
    height: 14px;
    margin: 3px;
    background: #222;
}

.eye-ball-dot {
    width: 14px;
    height: 14px;
    margin: 3px;
    background: #222;
    border-radius: 50%;
}



.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 8px 15px;
    text-align: right;
    font-size: 14px;
}
.top-bar a {
    color: #007bff;
    text-decoration: none;
}
.top-bar a:hover {
    text-decoration: underline;
}


.quality-panel {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}

.quality-labels span:nth-child(2) {
    font-weight: bold;
}

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


.btn-secondary {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #007bff;
    background: #ffffff;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #007bff;
    color: #ffffff;
}


/* Frames (ramki) */
.frames-group .frame-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.frame-tile {
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    min-width: 72px;
}

.frame-tile img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
    margin-bottom: 2px;
}

.frame-tile span {
    text-align: center;
	color: #707480;
}
/*
.frame-tile.active {
    border-color: #007bff;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4);
}*/

.frame-tile.frame-locked {
    opacity: 0.5;
}

/* Informacja gdy brak ramek */
.frames-empty {
    font-size: 12px;
    color: #777;
}

/* Overlay ramki na podglądzie */
.qr-canvas {
    position: relative;
    z-index: 2;
    transition: transform 0.15s ease;
}

.frame-tile.frame-none {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 70px;
   /* border-color: #fecaca;
    color: #b91c1c;*/
    padding-top: 47px;
}

.frame-none-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #ef4444;
}

.frame-tile.frame-none {
    position: relative;
    overflow: hidden;
}

.frame-tile.frame-none::before,
.frame-tile.frame-none::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 4px;
    background: #0f172a;
    border-radius: 999px;
    left: 50%;
    top: 42%;
    transform-origin: center;
}

.frame-tile.frame-none::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.frame-tile.frame-none::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.frame-tile.frame-none .frame-none-label {
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    z-index: 1;
}
.qr-preview.has-frame .qr-canvas {
    transform: translateY(var(--qr-offset-y, 0px));
}

.qr-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Podgląd ma wyglądać identycznie jak export, gdzie ramka jest skalowana 1:1 do kwadratu.
       `contain` potrafi "pomniejszyć" ramkę (gdy plik nie jest idealnie 1:1), przez co QR wygląda na za duży.
    */
    object-fit: fill;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 980px) {
    .wrapper {
        flex-direction: column;
        padding: 10px;
    }
    .left-panel,
    .right-panel {
        width: 100%;
        margin: 0 0 10px;
    }
    .left-panel {
        padding-right: 0;
    }
    .right-panel {
        padding-left: 0;
    }
    .qr-preview-stack {
        width: 260px;
        margin: 0 auto 10px;
    }
    .qr-preview {
        width: 100%;
        height: 260px;
        margin: 0;
    }
}

/* Fancy inputs: checkbox, color, file */

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 6px;
}

input[type="checkbox"]:hover {
    border-color: #2563eb;
}

input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #2563eb;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Color input */
input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 0 1px #d1d5db;
    background: transparent;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 999px;
    border: none;
}

input[type="color"]::-moz-color-swatch {
    border-radius: 999px;
    border: none;
}

/* File input */
input[type="file"] {
    font-size: 12px;
    color: #4b5563;
}

input[type="file"]::file-selector-button {
    border: none;
    margin-right: 8px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
}

input[type="file"]::file-selector-button:hover {
    background: #1d4ed8;
}

/* Templates grid */
#templates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-item {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 6px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease,
        box-shadow 0.15s ease, transform 0.05s ease;
}

.template-preview {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
}

.template-name {
    white-space: nowrap;
    color: #111827;
}

.template-item:hover {
    background: #e0ecff;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.template-item.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* Layout for color pickers in a row */
#singleColorBox,
#gradientBox,
#eyeColorBox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
}

#bacolo label,
#singleColorBox label,
#gradientBox label,
#eyeColorBox label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    margin-bottom: 4px;
	flex-direction: column;
}

#singleColorBox input[type="color"],
#gradientBox input[type="color"],
#eyeColorBox input[type="color"] {
    flex-shrink: 0;
}

/* Keep Eye Color, Eye Ball Color, swap icon and Copy Foreground in one row (with wrap on small screens) */
#eyeColorBox {
    align-items: center;
}

#eyeColorBox .eye-actions {
    margin-top: 18px;
}


/* Landing page layout */
.landing-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
}

.landing-main {
    flex: 2 1 320px;
}

.landing-side {
    flex: 1 1 260px;
}

.landing-main h1 {
    margin-top: 0;
    font-size: 26px;
    margin-bottom: 8px;
}

.landing-main .lead {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 18px;
    max-width: 560px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.landing-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-size: 13px;
}

.landing-card h3 {
    margin-top: 0;
    font-size: 14px;
    margin-bottom: 8px;
}

.landing-card ul {
    padding-left: 18px;
    margin: 0;
}

.landing-preview-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-size: 13px;
}

.landing-preview-info h3 {
    margin-top: 0;
    font-size: 14px;
    margin-bottom: 8px;
}

.landing-preview-info ol {
    padding-left: 18px;
    margin-top: 0;
}

.landing-preview-info .muted {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .landing-wrapper {
        flex-direction: column;
    }
}

/* Auth pages */
.auth-wrapper {
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.auth-panel {
    max-width: 420px;
}

.auth-panel h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 4px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    font-size: 13px;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.muted {
    font-size: 12px;
    color: #6b7280;
}

/* Content type picker */
.content-type-block{
    margin-bottom: 10px;
}

.content-type-head{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:10px;
}

.content-type-title{
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.content-type-sub{
    font-size: 12px;
    color: #6b7280;
}

.content-type-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:8px;
    max-height: 190px;
    overflow:auto;
    padding-right: 4px;
	padding-top: 1px;
}

.type-btn{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
    text-align:left;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.type-btn .type-ico{
    width: 22px;
    height: 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex: 0 0 22px;
    color: #2563eb;
}

.type-btn .type-ico svg{
    width:22px;
    height:22px;
}

.type-btn .type-label{
    display:block;
    line-height: 1.1;
    color: #111827;
}

.type-btn:hover{
    background:#f3f4f6;
    border-color:#cbd5e1;
}

.type-btn:focus-visible{
    outline:none;
    box-shadow: 0 0 0 3px rgba(37,99,235,.25);
    border-color:#2563eb;
}

.type-btn.active{
    background:#eff6ff;
    border-color:#2563eb;
}

.type-btn.active .type-label{
    font-weight: 700;
}

.hidden-type-select {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Mobile: allow scroll if wiele typów się nie mieści */
@media (max-width: 640px) {
    .content-type-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 240px;
    }
}
.buttons{
	padding-top:10px;
}