:root {
    --bg: #f4f6f5;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #667085;
    --line: #d9e1ec;
    --brand: #078c2f;
    --brand-dark: #046c24;
    --accent: #ef4444;
    --yellow: #ffd91a;
    --danger: #b42318;
    --success: #027a48;
    --cart-drawer-width: min(420px, 92vw);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.store-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 6px rgba(31, 41, 55, .08);
    transition: width .24s ease;
}

.store-bar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 28px;
    font-size: 12px;
}

.store-header {
    min-height: 68px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 28px;
}

.market-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
}

a.market-logo:hover {
    text-decoration: none;
}

.market-logo span,
.brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.market-logo img,
.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

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

.market-logo strong {
    font-size: 22px;
    line-height: 1;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 96px;
    border: 2px solid var(--brand);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    height: 42px;
    border: 0;
    padding: 0 14px;
    font-size: 14px;
}

.search-box input:focus { outline: 0; }

.search-box button,
.product-card button,
.job-inputs button,
.job-row button {
    border: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.quick-actions {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.quick-actions span,
.quick-actions a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.store-nav {
    position: relative;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    border-top: 1px solid #edf1f5;
    overflow: visible;
    flex-wrap: wrap;
    white-space: nowrap;
    font-size: 13px;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    flex: 0 0 auto;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.submenu {
    position: absolute;
    top: 36px;
    left: 0;
    z-index: 30;
    width: 230px;
    max-height: 360px;
    display: none;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(31, 41, 55, .16);
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu {
    display: grid;
    gap: 2px;
}

.submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    white-space: normal;
}

.submenu a::after {
    content: "›";
    color: #9ca3af;
    font-size: 17px;
    line-height: 1;
}

.submenu a:hover {
    background: #eef8f1;
    text-decoration: none;
}


.market-page {
    width: 100%;
    margin: 0;
    padding: 18px 28px 40px;
    transition: width .24s ease;
}

body.cart-drawer-open .store-top,
body.cart-drawer-open .market-page {
    width: calc(100% - var(--cart-drawer-width));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 34px;
    border: 1px solid #b7e1c4;
    border-radius: 8px;
    background: #078c2f;
    color: #fff;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .7s ease, transform 4.8s ease;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 83, 24, .86), rgba(0, 128, 46, .28));
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--yellow);
    color: #294000;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 660px;
    margin: 20px 0 12px;
    font-size: 36px;
    line-height: 1.15;
}

.hero-content p {
    max-width: 560px;
    margin: 0 0 24px;
    color: #f5fff7;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 4px;
    background: var(--yellow);
    color: #294000;
    text-decoration: none;
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}

.hero-dots button.active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

.rag-shell {
    display: grid;
    grid-template-columns: minmax(0, 430px) 1fr;
    gap: 18px;
}

.rag-chat-card,
.rag-results {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, .06);
}

.rag-chat-card {
    padding: 22px;
}

.rag-heading span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f7ec;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rag-heading h1 {
    margin: 12px 0 6px;
    font-size: 30px;
    line-height: 1.1;
}

.rag-heading p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.rag-question-form {
    display: grid;
    gap: 10px;
}

.rag-question-form input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
}

.rag-question-form button {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.rag-answer {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #b7e1c4;
    border-radius: 8px;
    background: #f0fbf3;
}

.rag-answer.muted {
    border-color: var(--line);
    background: #f8fafc;
}

.rag-answer strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.rag-answer p {
    margin: 0;
    line-height: 1.6;
}

.rag-answer small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 700;
}

.rag-results {
    padding: 18px;
}

.rag-result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.rag-result-item.with-image {
    grid-template-columns: 112px minmax(0, 1fr) auto;
}

.rag-result-thumb {
    display: block;
    padding: 0;
    border-radius: 6px;
    background: #fff;
}

.rag-result-thumb img {
    width: 112px;
    height: 92px;
    display: block;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.rag-result-body {
    min-width: 0;
}

.rag-result-body > span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef8f1;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.rag-result-body h3 {
    margin: 8px 0 4px;
    font-size: 17px;
}

.rag-result-body p {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-weight: 700;
}

.rag-result-body small {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}

.rag-cart-form {
    margin: 0;
}

.rag-cart-form button,
.rag-open-link {
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.login-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.login-card h2,
.job-compose h2,
.recent-jobs h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.login-card p,
.form-card p,
.content p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

label {
    display: block;
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 13px;
}

.input {
    width: 100%;
    height: 42px;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
}

.input:focus,
.job-compose textarea:focus,
.job-inputs input:focus {
    outline: 2px solid rgba(7, 140, 47, .18);
    border-color: var(--brand);
}

.btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover,
.search-box button:hover,
.product-card button:hover,
.job-inputs button:hover,
.job-row button:hover {
    background: var(--brand-dark);
}

.create-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.message {
    margin: 12px 0;
    padding: 11px;
    border-radius: 6px;
    font-weight: 700;
    background: #fff4f2;
    color: var(--danger);
    border: 1px solid #fecdca;
}

.message.success {
    background: #ecfdf3;
    color: var(--success);
    border-color: #abefc6;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(86px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.category-pill {
    min-height: 88px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    font-size: 12px;
}

.category-pill:hover { text-decoration: none; border-color: var(--brand); }

.category-pill img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}

.subcategory-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfdfb;
}

.subcategory-row a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #cde8d3;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 12px;
}

.subcategory-row a:hover {
    background: #eef8f1;
    text-decoration: none;
}

.market-section {
    margin-bottom: 18px;
    border: 1px solid #cde8d3;
    background: #fff;
}

.section-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 10px;
    border-bottom: 1px solid #cde8d3;
}

.section-title strong,
.section-category-link {
    display: inline-block;
    padding: 7px 12px;
    background: var(--brand);
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.section-category-link:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.section-title span {
    margin-left: 10px;
    color: var(--muted);
    font-size: 12px;
}

.section-title a {
    padding: 7px 10px;
    border-radius: 3px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
}

.product-scroll-wrap {
    position: relative;
    padding: 16px 46px;
}

.product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 158px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

.product-row::-webkit-scrollbar {
    height: 8px;
}

.product-row::-webkit-scrollbar-track {
    background: #edf1f5;
    border-radius: 999px;
}

.product-row::-webkit-scrollbar-thumb {
    background: #9ad5aa;
    border-radius: 999px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 52px;
    transform: translateY(-50%);
    border: 1px solid #cde8d3;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 41, 55, .14);
}

.scroll-btn:hover {
    background: #eef8f1;
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.product-card {
    height: 326px;
    display: grid;
    grid-template-rows: 122px 54px 20px 18px 32px 28px;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    text-align: center;
    scroll-snap-align: start;
}

.product-card img {
    grid-row: 1;
    width: 100%;
    height: 122px;
    object-fit: contain;
    background: #fff;
}

.product-media {
    grid-row: 1;
    display: block;
}

.product-card h3 {
    grid-row: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.product-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--brand-dark);
}

.product-card p {
    grid-row: 3;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-name {
    grid-row: 4;
    display: block;
    overflow: hidden;
    color: #4b5563;
    font-size: 11px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-cart-form {
    grid-row: 5;
    align-self: end;
}

.profile-add-form {
    grid-row: 6;
}

.product-card button {
    grid-row: 5;
    align-self: end;
    width: 100%;
    height: 32px;
    border-radius: 4px;
}

.profile-add-form button {
    height: 28px;
    border: 1px solid #b8dfc5;
    background: #eef9f2;
    color: var(--brand-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px;
}

.service-grid article {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.service-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--accent);
    font-weight: 800;
}

.service-grid h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.service-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
}

.jobs-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
    margin-bottom: 18px;
}

.job-compose,
.recent-jobs {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.job-compose textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.job-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 110px;
    gap: 10px;
    margin-top: 10px;
}

.job-inputs input {
    min-width: 0;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 10px;
}

.job-inputs button,
.job-row button {
    border-radius: 6px;
}

.job-row {
    display: grid;
    grid-template-columns: 1fr 58px 76px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf1f5;
}

.job-row strong,
.job-row span {
    display: block;
}

.job-row strong { font-size: 13px; }
.job-row span { color: var(--muted); font-size: 12px; margin-top: 3px; }

.seller-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 8px;
    background: #0ea5d6;
    color: #fff;
}

.seller-cta strong { font-size: 22px; }

.seller-cta a {
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--yellow);
    color: #294000;
}

.store-footer {
    padding: 24px 28px;
    background: #263238;
    color: #fff;
}

.store-footer > div {
    margin: 0 0 14px;
}

.store-footer span {
    display: block;
    margin-top: 8px;
    color: #d8e1e7;
}

.payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: #fff;
    color: #263238;
    font-size: 12px;
}

.page-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.form-card {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
}

.top-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
}

.grid-form .wide,
.grid-form .btn {
    grid-column: 1 / -1;
}

.dashboard {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: #f4f7fb;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.sidebar-user {
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user span {
    margin-top: 4px;
    color: var(--muted);
}

.sidebar nav {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-menu-group {
    display: grid;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-menu-group h3 {
    margin: 8px 0 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar nav a,
.sidebar-logout {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a.active,
.sidebar-logout:hover {
    background: #eef6f5;
    color: var(--brand);
    text-decoration: none;
}

.sidebar-logout {
    border: 1px solid #fee2e2;
    color: #dc2626;
    text-align: center;
}

.chatbot-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    font-family: Arial, Helvetica, sans-serif;
}

.chatbot-fab {
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 32px rgba(4, 108, 36, .28);
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}

.chatbot-fab-icon {
    position: relative;
    width: 22px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 5px;
}

.chatbot-fab-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: -7px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: var(--brand);
    transform: rotate(-35deg);
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    display: none;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.chatbot-widget.open .chatbot-panel {
    display: grid;
}

.chatbot-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #078c2f, #046c24);
    color: #fff;
}

.chatbot-panel header strong,
.chatbot-panel header span {
    display: block;
}

.chatbot-panel header span {
    margin-top: 3px;
    font-size: 12px;
    opacity: .86;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-panel header button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.chatbot-panel header #chatbot-clear {
    width: auto;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
}

.chatbot-messages {
    padding: 14px;
    overflow-y: auto;
    background: #f7fbf8;
}

.chatbot-service-box {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chatbot-service-box > button {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(7, 140, 47, .35);
    border-radius: 7px;
    background: #ecfdf3;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 800;
}

#chatbot-service-form {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

#chatbot-service-form.open {
    display: grid;
}

#chatbot-service-form input,
#chatbot-service-form select,
#chatbot-service-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 10px;
    font-family: inherit;
    resize: vertical;
}

#chatbot-service-form button {
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.chatbot-support-thread {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.chatbot-support-thread.open {
    display: block;
}

.chatbot-support-thread > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
}

.chatbot-support-thread > div button {
    border: 1px solid rgba(7, 140, 47, .35);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 800;
    padding: 5px 10px;
}

#chatbot-support-message-form {
    display: grid;
    gap: 8px;
}

#chatbot-feedback-form {
    display: none;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

#chatbot-feedback-form.open {
    display: grid;
}

#chatbot-feedback-form strong {
    font-size: 13px;
    color: var(--ink);
}

#chatbot-feedback-form select,
#chatbot-feedback-form textarea,
#chatbot-support-message-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 10px;
    font-family: inherit;
    resize: vertical;
}

#chatbot-feedback-form button,
#chatbot-support-message-form button {
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.chatbot-message {
    max-width: 86%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.chatbot-message.user {
    margin-left: auto;
    background: var(--brand);
    color: #fff;
}

.chatbot-message.muted {
    color: var(--muted);
}

.chatbot-results {
    display: grid;
    gap: 8px;
    margin: 4px 0 12px;
}

.chatbot-result {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.chatbot-result:hover {
    text-decoration: none;
    border-color: rgba(7, 140, 47, .45);
}

.chatbot-result img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

.chatbot-result strong,
.chatbot-result small {
    display: block;
}

.chatbot-result strong {
    font-size: 13px;
    line-height: 1.25;
}

.chatbot-result small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 500;
}

.chatbot-form {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chatbot-form input {
    min-width: 0;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0 11px;
}

.chatbot-form input:focus {
    outline: 2px solid rgba(7, 140, 47, .18);
    border-color: var(--brand);
}

.chatbot-form button {
    border: 0;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.support-admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 18px;
}

.support-request-list,
.support-conversation {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.support-request-list {
    overflow: hidden;
}

.support-filter {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.support-filter input,
.support-filter select,
.support-ticket-form input,
.support-ticket-form select,
.support-reply-form textarea,
.support-reply-form select {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px;
    font-family: inherit;
}

.support-filter button,
.support-ticket-form button,
.support-reply-form button {
    border: 0;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 14px;
}

.support-list-scroll {
    max-height: 640px;
    overflow-y: auto;
    padding: 10px;
}

.support-request-card {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    color: var(--ink);
    background: #fff;
}

.support-request-card:hover,
.support-request-card.active {
    text-decoration: none;
    border-color: var(--brand);
    background: #f0fdf4;
}

.support-request-card strong,
.support-request-card span,
.support-request-card small {
    display: block;
}

.support-request-card span {
    margin-top: 4px;
    color: var(--brand-dark);
}

.support-request-card small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.35;
}

.support-conversation {
    padding: 16px;
}

.support-customer-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.support-customer-info div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    background: #f8fafc;
}

.support-customer-info span,
.support-customer-info strong {
    display: block;
}

.support-customer-info span {
    color: var(--muted);
    font-size: 12px;
}

.support-attachment {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
}

.support-ticket-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.support-ticket-form input,
.support-ticket-form select {
    min-width: 0;
}

.support-message-list {
    display: grid;
    gap: 10px;
    max-height: 440px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbf8;
}

.support-message {
    max-width: 82%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.support-message.rep {
    margin-left: auto;
    border-color: rgba(7, 140, 47, .35);
    background: #ecfdf3;
}

.support-message p {
    margin: 6px 0;
    line-height: 1.45;
}

.support-message small {
    color: var(--muted);
}

.support-reply-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.support-reply-form > div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .support-admin-grid,
    .support-customer-info,
    .support-ticket-form {
        grid-template-columns: 1fr;
    }
}

.content {
    min-width: 0;
    padding: 28px;
}

.dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-topbar span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-topbar h1 {
    margin: 6px 0;
    color: var(--ink);
    font-size: 30px;
}

.dashboard-top-actions {
    display: flex;
    gap: 10px;
}

.dashboard-top-actions a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.dashboard-top-actions a:hover {
    background: #eef6f5;
    text-decoration: none;
}

.dashboard-profile {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.dashboard-profile div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.dashboard-profile span,
.dashboard-profile strong {
    display: block;
}

.dashboard-profile span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.dashboard-profile strong {
    margin-top: 5px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stats article,
.dashboard-panel,
.dashboard-side-panel section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}

.dashboard-stats article {
    padding: 18px;
}

.dashboard-stats strong,
.dashboard-stats span {
    display: block;
}

.dashboard-stats strong {
    color: var(--ink);
    font-size: 28px;
}

.dashboard-stats span {
    margin-top: 6px;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.dashboard-panel,
.dashboard-side-panel section {
    padding: 22px;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-module-focus {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(7, 140, 47, .22);
    border-radius: 8px;
    background: #eefbf3;
}

.admin-module-focus span,
.admin-module-focus strong {
    display: block;
}

.admin-module-focus span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-module-focus h2 {
    margin: 6px 0;
    color: var(--ink);
}

.admin-module-focus p {
    margin: 0 0 8px;
    color: var(--muted);
}

.admin-module-focus strong {
    color: #166534;
    font-size: 13px;
}

.admin-data-panel {
    margin-bottom: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.admin-data-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.admin-data-heading h2 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 19px;
}

.admin-data-heading p {
    margin: 0;
    color: var(--muted);
}

.admin-data-heading strong {
    white-space: nowrap;
    color: var(--brand);
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.admin-filter-bar label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.admin-filter-bar input,
.admin-filter-bar select {
    min-height: 40px;
    min-width: 170px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.admin-filter-bar button,
.admin-filter-bar a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #068c37;
    border-radius: 6px;
    background: #068c37;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.admin-filter-bar a {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.admin-assign-form {
    min-width: 260px;
    display: flex;
    gap: 8px;
}

.admin-assign-form select {
    min-width: 160px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.admin-assign-form button {
    height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    background: #068c37;
    color: #fff;
    font-weight: 700;
}

.rich-editor-source {
    display: none;
}

.rich-editor {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.rich-editor-toolbar button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.rich-editor-toolbar button:hover {
    border-color: #068c37;
    color: #068c37;
}

.rich-editor-canvas {
    min-height: 170px;
    padding: 13px 14px;
    color: var(--ink);
    line-height: 1.55;
    outline: none;
}

.rich-editor-canvas:empty::before {
    color: var(--muted);
    content: attr(data-placeholder);
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    white-space: nowrap;
}

.admin-table td {
    color: #334155;
    max-width: 260px;
    overflow-wrap: anywhere;
}

.admin-table tbody tr:hover td {
    background: #f8fafc;
}

.flash-stack {
    margin-bottom: 16px;
}

.panel-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}

.course-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.course-form,
.course-filter-form {
    display: grid;
    gap: 14px;
}

.course-form .wide {
    grid-column: 1 / -1;
}

.course-form h2,
.panel-card h2 {
    margin: 0 0 10px;
    color: var(--ink);
}

.course-form label,
.course-filter-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.course-form input,
.course-form select,
.course-filter-form select,
.inline-filter select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}

.searchable-select {
    position: relative;
}

.searchable-select-trigger {
    width: 100%;
    min-height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.searchable-select-trigger::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 10px;
    color: var(--muted);
    font-size: 18px;
}

.searchable-select-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .16);
}

.searchable-select.open .searchable-select-panel {
    display: grid;
    gap: 8px;
}

.searchable-select-search {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.searchable-select-options {
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
}

.searchable-select-option {
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option:focus {
    background: #eef8f1;
    outline: 0;
}

.sr-only-reference {
    display: none;
}

.course-form button,
.course-list-heading button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.course-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.course-list-heading h2,
.course-list-heading p {
    margin: 0;
}

.course-list-heading p {
    margin-top: 5px;
    color: var(--muted);
}

.inline-filter {
    min-width: 230px;
}

.course-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.course-group-stack {
    display: grid;
    gap: 20px;
}

.course-video-group {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5edf3;
    border-radius: 10px;
    background: #fff;
}

.course-video-group header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.course-video-group header div {
    display: grid;
    gap: 4px;
}

.course-video-group header div span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.course-video-group h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.course-video-group header > span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f8ee;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.course-video-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #fbfdfc;
}

.course-video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: #e5e7eb;
}

.course-video-card strong,
.course-video-card span,
.course-video-card small {
    display: block;
}

.course-video-card strong {
    color: var(--ink);
}

.course-video-card span,
.course-video-card small {
    color: var(--muted);
}

.danger-button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #fee4e2;
    color: var(--danger);
    font-weight: 900;
    cursor: pointer;
}

.assigned-box {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #cfe7d5;
    border-radius: 8px;
    background: #f2fbf5;
}

.assigned-box span {
    color: var(--muted);
}

.selectable {
    cursor: pointer;
}

.selectable.assigned {
    opacity: .74;
    background: #f1f5f9;
}

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

.course-student-banner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.course-student-banner div {
    padding: 14px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #f8fafc;
}

.course-student-banner span,
.course-student-banner strong {
    display: block;
}

.course-student-banner span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.course-student-banner strong {
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.panel-heading h2,
.dashboard-side-panel h2 {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 20px;
}

.panel-heading p {
    margin: 0;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.cards article {
    position: relative;
    min-height: 150px;
    padding: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.cards b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e7f7ed;
    color: var(--brand);
}

.cards strong,
.cards span {
    display: block;
}

.cards strong {
    margin-bottom: 8px;
    font-size: 17px;
}

.cards span {
    color: var(--muted);
    line-height: 1.5;
}

.dashboard-side-panel {
    display: grid;
    gap: 18px;
}

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

.quick-action-list button {
    min-height: 42px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    padding: 0 12px;
}

.quick-action-list button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

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

.activity-list p {
    margin: 0;
    padding: 11px 12px;
    border-left: 3px solid var(--brand);
    background: #f8fafc;
    color: var(--muted);
    line-height: 1.45;
}

.category-page {
    width: 100%;
    padding: 18px 28px 40px;
}

.category-hero {
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, #046c24, #0b9440);
    color: #fff;
}

.category-hero span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--yellow);
    color: #294000;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.category-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.category-hero p {
    max-width: 720px;
    margin: 0;
    color: #eefcf1;
    line-height: 1.6;
}

.category-hero img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
}

.filter-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #cde8d3;
    border-radius: 8px;
    background: #fff;
}

.filter-strip a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #cde8d3;
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 13px;
}

.filter-strip a.active,
.filter-strip a:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.category-result-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.category-result-head span {
    color: var(--muted);
}

.product-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 14px;
}

.empty-state {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.empty-state span {
    color: var(--muted);
}

.product-detail-page,
.cart-page {
    width: 100%;
    padding: 18px 28px 40px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-gallery {
    min-width: 0;
}

.detail-main-image {
    width: 100%;
    height: 390px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-thumbs img {
    width: 100%;
    height: 74px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.detail-info h1 {
    margin: 12px 0;
    font-size: 30px;
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.detail-price {
    margin: 16px 0;
    color: var(--brand-dark);
    font-size: 28px;
    font-weight: 800;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.detail-meta div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta dd {
    margin: 5px 0 0;
    font-weight: 800;
}

.detail-cart-form {
    max-width: 320px;
}

.product-description {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-description h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.product-description p,
.decoded-content {
    white-space: pre-line;
    color: var(--ink);
    line-height: 1.7;
}

.decoded-content h1,
.decoded-content h2,
.decoded-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.decoded-content p {
    margin: 0 0 10px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.cart-items,
.cart-summary {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.cart-items h1,
.cart-summary h2 {
    margin: 0 0 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 120px 44px;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #edf1f5;
}

.cart-item img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.cart-item h2 {
    margin: 0 0 6px;
    font-size: 16px;
}

.cart-item h2 a {
    color: var(--ink);
}

.cart-item span,
.cart-item strong {
    display: block;
    margin-top: 4px;
}

.cart-quantity-form .input {
    height: 42px;
}

.cart-remove-form {
    justify-self: center;
}

.remove-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.remove-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.04);
}

.cart-summary {
    align-self: start;
}

.cart-summary div {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
}

.summary-checkout-link {
    display: grid;
    place-items: center;
    text-decoration: none;
}

.checkout-top {
    height: 62px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.checkout-brand {
    color: #64748b;
    font-size: 20px;
    text-decoration: none;
}

.checkout-top nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.checkout-top nav a {
    color: #475569;
    text-decoration: none;
}

.checkout-top nav a:hover {
    color: var(--brand);
}

.checkout-cart-mini {
    justify-self: end;
    display: grid;
    gap: 2px;
    color: var(--ink);
    font-size: 14px;
    text-align: left;
    text-decoration: none;
}

.checkout-cart-mini span {
    color: #0f5132;
}

.checkout-page {
    min-height: calc(100vh - 62px);
    display: grid;
    grid-template-columns: 174px minmax(0, 1010px);
    justify-content: center;
    gap: 30px;
    padding: 0 28px 42px;
    background: #eaf0f7;
}

.checkout-category-list {
    margin-top: 0;
    background: #fff;
    border: 1px solid #d8dee8;
    border-top: 0;
    align-self: start;
}

.checkout-category-list a {
    display: block;
    padding: 11px 16px;
    border-bottom: 1px solid #d8dee8;
    color: #1d7bd7;
    text-decoration: none;
}

.checkout-category-list a::before {
    content: "";
    display: inline-block;
    margin-right: 7px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #2f86c6;
    vertical-align: -2px;
}

.checkout-category-list a:hover {
    background: #f8fafc;
    color: var(--brand);
}

.checkout-workspace {
    border-top: 6px solid #c8d29b;
    padding: 24px 14px 0;
}

.checkout-form {
    display: grid;
    grid-template-columns: minmax(360px, 450px) minmax(440px, 1fr);
    gap: 48px;
    align-items: start;
}

.checkout-customer h1,
.checkout-payment h2 {
    margin: 0 0 40px;
    color: #ff0000;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
}

.checkout-customer label {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 0;
}

.checkout-customer label span {
    padding-top: 9px;
}

.checkout-customer input,
.checkout-customer textarea,
.payment-method select {
    width: 100%;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 8px 12px;
    color: var(--ink);
    font: inherit;
}

.checkout-customer textarea {
    resize: vertical;
}

.payment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 14px;
}

.payment-tabs button {
    height: 42px;
    border: 0;
    background: transparent;
    color: #1d7bd7;
    padding: 0 16px;
    cursor: pointer;
}

.payment-tabs button.active {
    background: #ff5a1f;
    color: #fff;
}

.payment-method {
    display: grid;
    grid-template-columns: 200px minmax(220px, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 0 14px;
}

.payment-instructions {
    margin-top: 20px;
    padding: 34px 20px 28px;
    background: #fff;
    color: #0f172a;
    line-height: 1.55;
}

.payment-instructions ol {
    margin: 16px 0;
    padding-left: 20px;
}

.payment-instructions li {
    margin-bottom: 8px;
}

.checkout-order-box {
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(203, 213, 225, .85);
}

.checkout-order-box h3 {
    margin: 0 0 10px;
}

.checkout-order-box div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
}

.checkout-order-box span {
    min-width: 0;
}

.checkout-total {
    font-size: 18px;
}

.confirm-order-btn {
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: 0;
    background: #7daeb5;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.confirm-order-btn:hover {
    background: var(--brand);
}

.checkout-store-top {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.checkout-page {
    min-height: calc(100vh - 112px);
    display: block;
    padding: 26px 28px 44px;
    background: #f4f7fb;
}

.checkout-heading {
    max-width: 1280px;
    margin: 0 auto 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.checkout-heading span {
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}

.checkout-heading h1 {
    margin: 6px 0;
    color: var(--ink);
    font-size: 30px;
}

.checkout-heading p {
    margin: 0;
    color: var(--muted);
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-steps li {
    min-width: 94px;
    padding: 10px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.checkout-steps li.done {
    border-color: rgba(7, 140, 47, .25);
    color: var(--brand);
}

.checkout-steps li.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.checkout-form {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 18px;
}

.checkout-panel,
.checkout-summary {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.checkout-panel {
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7f7ed;
    color: var(--brand);
    font-weight: 900;
}

.panel-title h2,
.checkout-summary h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 20px;
}

.panel-title p {
    margin: 0;
    color: var(--muted);
}

.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkout-fields label,
.payment-method {
    display: grid;
    gap: 7px;
}

.lookup-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
}

.lookup-status.found {
    color: var(--success);
}

.lookup-status.new {
    color: #1d4ed8;
}

.lookup-status.error {
    color: #dc2626;
}

.checkout-fields label span,
.payment-method span {
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
}

.checkout-fields .wide {
    grid-column: 1 / -1;
}

.checkout-fields input,
.checkout-fields textarea,
.payment-method select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

.checkout-fields textarea {
    resize: vertical;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.payment-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 128px;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.payment-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.payment-card strong {
    color: var(--ink);
}

.payment-card small {
    color: var(--muted);
    line-height: 1.45;
}

.payment-method {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
    border: 0;
    padding: 0;
}

.payment-note {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eaf7ef;
    color: #14532d;
}

.payment-note span {
    color: #166534;
}

.mobile-payment-method[hidden],
.payment-note[hidden] {
    display: none;
}

.checkout-summary {
    position: sticky;
    top: 18px;
    padding: 20px;
}

.summary-items {
    display: grid;
    gap: 12px;
    max-height: 370px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.summary-items article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.summary-items img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #fff;
}

.summary-items strong,
.summary-items span {
    display: block;
}

.summary-items strong {
    color: var(--ink);
    line-height: 1.3;
}

.summary-items span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.summary-items b {
    color: var(--ink);
    white-space: nowrap;
}

.summary-lines {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.summary-lines div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.summary-lines strong {
    color: var(--ink);
}

.summary-lines .grand-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    color: var(--ink);
    font-size: 18px;
}

.confirm-order-btn {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.confirm-order-btn:hover {
    background: var(--brand-dark);
}

.back-to-cart {
    display: grid;
    place-items: center;
    margin-top: 12px;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.checkout-success-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background: #f4f7fb;
}

.checkout-success-card {
    width: min(560px, 100%);
    padding: 32px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
    text-align: center;
}

.checkout-success-card > span {
    color: var(--brand);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.checkout-success-card h1 {
    margin: 10px 0 12px;
    color: var(--ink);
}

.checkout-success-card p {
    color: var(--muted);
}

.checkout-success-card div {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.cart-drawer-shell {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 100;
}

.cart-drawer-shell.open,
.cart-drawer-shell.peek {
    pointer-events: none;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, .04);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    backdrop-filter: blur(.5px);
}

.cart-drawer-shell.open .cart-overlay {
    opacity: 1;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--cart-drawer-width);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(20px) saturate(145%);
    box-shadow: -14px 0 34px rgba(15, 23, 42, .12);
    pointer-events: auto;
    transform: translateX(105%);
    transition: transform .24s ease;
}

.cart-drawer-shell.open .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-shell.peek .cart-drawer {
    transform: translateX(100%);
    box-shadow: none;
}

.cart-drawer-toggle {
    position: absolute;
    left: -34px;
    top: 50%;
    width: 34px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(7, 140, 47, .36);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: rgba(255, 255, 255, .86);
    color: var(--brand);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
    box-shadow: -8px 0 18px rgba(15, 23, 42, .1);
    transform: translateY(-50%);
}

.cart-drawer-toggle:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.cart-drawer header,
.cart-drawer footer {
    padding: 18px;
    border-bottom: 1px solid rgba(203, 213, 225, .55);
    background: rgba(255, 255, 255, .38);
}

.cart-drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-drawer header strong,
.cart-drawer header span {
    display: block;
}

.cart-drawer header span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.cart-drawer header > a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.drawer-items {
    overflow-y: auto;
    padding: 6px 18px;
}

.drawer-item {
    display: grid;
    grid-template-columns: 30px 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .54);
}

.drawer-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .48);
}

.drawer-item h3 {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.3;
}

.drawer-item h3 a {
    color: var(--ink);
}

.drawer-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.drawer-item form {
    grid-column: auto;
    grid-row: 1;
}

.drawer-item button {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(254, 226, 226, .78);
    color: #dc2626;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.drawer-item button:hover {
    background: #dc2626;
    color: #fff;
}

.drawer-empty {
    display: grid;
    gap: 6px;
    padding: 40px 10px;
    text-align: center;
}

.drawer-empty span {
    color: var(--muted);
}

.cart-drawer footer {
    border-top: 1px solid rgba(203, 213, 225, .55);
    border-bottom: 0;
}

.cart-drawer footer div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.drawer-cart-link {
    width: 100%;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(7, 140, 47, .94);
    color: #fff;
    text-decoration: none;
}

.drawer-cart-link:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.designer-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.designer-grid .designer-wide {
    grid-column: 1 / -1;
}

.designer-job-list,
.designer-message-list {
    display: grid;
    gap: 12px;
}

.designer-job-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
}

.designer-job-card strong,
.designer-job-card span,
.designer-job-card small {
    display: block;
}

.designer-job-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.designer-job-card strong {
    color: var(--ink);
    font-size: 16px;
}

.designer-job-card span,
.designer-job-card p,
.designer-meta-row span,
.designer-actions span,
.designer-detail span,
.designer-detail p {
    color: var(--muted);
}

.designer-job-card p,
.designer-detail p,
.designer-message-list p {
    margin: 0;
    line-height: 1.55;
}

.designer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.designer-meta-row span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 12px;
}

.designer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
}

.designer-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.designer-actions a:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.designer-actions span {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.designer-detail {
    display: grid;
    gap: 12px;
}

.designer-detail dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.designer-detail dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.designer-detail dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.designer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.designer-submission-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
}

.designer-submission-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    background: #f8fafc;
}

.designer-submission-card strong,
.designer-submission-card span,
.designer-submission-card small {
    display: block;
}

.designer-submission-card span,
.designer-submission-card small,
.designer-submission-card p {
    color: var(--muted);
}

.designer-submission-card p {
    margin: 0;
    line-height: 1.45;
}

.affiliate-product-picker {
    max-height: 430px;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.affiliate-product-option {
    display: grid;
    grid-template-columns: 22px 72px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.affiliate-product-option:has(input:checked) {
    border-color: var(--brand);
    background: #eef9f2;
}

.affiliate-product-option img {
    width: 72px;
    height: 62px;
    object-fit: contain;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    background: #fff;
}

.affiliate-product-option span,
.affiliate-product-option small {
    grid-column: 3;
}

.affiliate-product-option span {
    color: var(--ink);
    font-weight: 900;
}

.affiliate-product-option small {
    color: var(--muted);
}

.designer-message-list article {
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
}

.designer-message-list strong,
.designer-message-list span {
    display: block;
}

.designer-message-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.customer-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.customer-layout .customer-main-panel {
    min-width: 0;
}

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

.customer-old-orders {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
}

.customer-mini-card {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
}

.customer-mini-card strong,
.customer-mini-card span,
.customer-mini-card small {
    display: block;
}

.customer-mini-card span,
.customer-mini-card p,
.customer-mini-card small {
    color: var(--muted);
}

.customer-mini-card p {
    margin: 0;
    line-height: 1.45;
}

.customer-style-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.customer-style-picker legend {
    padding: 0 6px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.customer-style-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink);
}

.customer-style-picker input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

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

.customer-flow-list span {
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ink);
    font-weight: 700;
}

.small-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.small-action-link:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.customer-review-form {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.customer-review-form select,
.customer-review-form input,
.customer-review-form button,
.course-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
}

.course-form textarea {
    resize: vertical;
}

.customer-review-form button {
    border: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.customer-review-form button:hover {
    background: var(--brand-dark);
}

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

.customer-sample-list img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    background: #fff;
}

.offer-place-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.offer-hero-panel {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ef4444;
}

.offer-summary-line {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.customer-summary-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-summary-line article {
    min-width: 0;
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .04);
}

.offer-summary-line span,
.offer-summary-line strong {
    display: block;
    min-width: 0;
}

.offer-summary-line span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-summary-line strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-summary-line article:nth-child(n+5) strong {
    font-size: 24px;
}

.offer-seller-strip {
    display: grid;
    grid-template-columns: 120px repeat(5, minmax(120px, 1fr));
    gap: 14px;
    align-items: center;
}

.offer-designer-photo {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    justify-self: center;
    overflow: hidden;
    border: 4px solid #ef3350;
    border-radius: 50%;
    background: #e7f7ed;
    color: var(--brand);
    font-size: 30px;
    font-weight: 900;
}

.offer-designer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-kpi {
    min-height: 96px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 14px;
    color: #fff;
    text-align: center;
}

.seller-kpi span,
.seller-kpi strong {
    display: block;
}

.seller-kpi strong {
    font-size: 22px;
}

.seller-kpi.red { background: #df3047; }
.seller-kpi.blue { background: #0f7deb; }
.seller-kpi.slate { background: #6f7a83; }
.seller-kpi.teal { background: #24a2b0; }
.seller-kpi.gold { background: #ffc20f; }

.offer-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #2da8c8;
}

.offer-tabbar a {
    padding: 13px 16px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.offer-tabbar a:hover,
.offer-tabbar a.active {
    background: #0b8fb0;
    text-decoration: none;
}

.offer-slider {
    margin: -22px -22px 18px;
    background: #eef2f7;
}

.offer-slides {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.offer-slides::-webkit-scrollbar {
    display: none;
}

.offer-slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    scroll-snap-align: start;
}

.offer-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: -34px;
    padding-bottom: 18px;
    position: relative;
    z-index: 1;
}

.offer-dots a {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.offer-slider-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.offer-form small {
    color: var(--muted);
    font-weight: 600;
}

.offer-form {
    display: grid;
    gap: 16px;
}

.offer-top-fields,
.offer-bottom-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.offer-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.offer-form input,
.offer-form select,
.offer-form textarea,
.inline-filter input,
.inline-filter button {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
}

.offer-form textarea {
    min-height: 70px;
    resize: vertical;
}

.package-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.package-row {
    display: grid;
    grid-template-columns: 190px repeat(3, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #edf2f7;
}

.package-row:last-child {
    border-bottom: 0;
}

.package-row > span {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f1f5f9;
    color: var(--ink);
    font-weight: 800;
}

.package-row input,
.package-row textarea {
    border: 0;
    border-left: 1px solid #edf2f7;
    border-radius: 0;
}

.package-head input {
    font-weight: 900;
}

.feature-row label {
    display: grid;
    place-items: center;
    margin: 0;
    border-left: 1px solid #edf2f7;
}

.feature-row input {
    width: 17px;
    min-height: 17px;
    accent-color: var(--brand);
}

.offer-form > button,
.inline-filter button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.offer-form > button:hover,
.inline-filter button:hover {
    background: var(--brand-dark);
}

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

.offer-thumb-grid a {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.offer-thumb-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

.offer-thumb-grid span {
    color: var(--muted);
    font-size: 12px;
}

.profile-service-grid {
    display: grid;
    gap: 12px;
}

.profile-service-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
}

.profile-service-card img {
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.profile-service-card span,
.profile-service-card p {
    color: var(--muted);
}

.profile-service-card strong,
.profile-service-card span {
    display: block;
}

.profile-service-card p {
    margin: 6px 0 0;
}

.freelancer-public-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.freelancer-cover {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px max(28px, calc((100vw - 1220px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.freelancer-profile-layout {
    width: min(1220px, calc(100% - 56px));
    margin: 24px auto 40px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.freelancer-profile-card {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
    text-align: center;
}

.freelancer-avatar {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: #e7f7ed;
    color: var(--brand);
    font-size: 38px;
    font-weight: 900;
}

.freelancer-profile-card h1 {
    margin: 0;
}

.freelancer-profile-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    text-align: left;
}

.freelancer-profile-card dt {
    color: var(--muted);
}

.freelancer-profile-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.freelancer-profile-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    text-align: left;
}

.freelancer-public-content {
    display: grid;
    gap: 18px;
}

.public-shop-page {
    min-height: 100vh;
    background: var(--bg);
}

.public-shop-inner,
.public-profile-shell,
.public-profile-footer {
    width: 100%;
    margin: 0;
}

.public-shop-hero {
    background: #fff;
    border-bottom: 1px solid #e5ebf2;
    box-shadow: 0 1px 6px rgba(31, 41, 55, .08);
}

.public-shop-hero .public-shop-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
}

.public-home-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.public-shop-search {
    background: #fff;
    border-bottom: 1px solid #e5ebf2;
}

.search-line {
    min-height: 62px;
    display: grid;
    grid-template-columns: 220px minmax(360px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px 28px;
}

.public-social,
.public-actions,
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-social a,
.footer-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #f5232f;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.public-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    border: 2px solid var(--brand);
    border-radius: 4px;
    overflow: hidden;
}

.public-search-box input {
    height: 42px;
    border: 0;
    padding: 0 14px;
}

.public-search-box button {
    border: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.public-actions a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
}

.public-actions a:first-child {
    border-color: #b8dfc5;
    background: #eef9f2;
    color: var(--brand-dark);
}

.public-profile-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
    padding: 18px 28px 36px;
    background: var(--bg);
}

.public-profile-left,
.public-service-rail {
    display: grid;
    gap: 14px;
}

.public-profile-photo {
    display: grid;
    place-items: center;
    min-height: 230px;
}

.public-profile-photo img,
.public-profile-photo span {
    width: 210px;
    height: 210px;
    border: 6px solid #0eaad1;
    border-radius: 50%;
    object-fit: cover;
    background: #eaffef;
}

.public-profile-photo span {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 54px;
    font-weight: 900;
}

.public-widget,
.public-category-list,
.public-service-mini,
.public-service-empty {
    border: 1px solid #d8d8d8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 41, 55, .05);
}

.public-widget h3,
.public-service-rail h2 {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #ddd;
    background: linear-gradient(#fafafa, #eeeeee);
    color: #3f3f46;
    font-size: 14px;
}

.activity-widget dl {
    margin: 0;
}

.activity-widget div,
.activity-widget dt,
.activity-widget dd {
    margin: 0;
}

.activity-widget dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.activity-widget dt,
.activity-widget dd {
    padding: 11px 14px;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 700;
}

.activity-widget dd {
    text-align: right;
}

.profile-social-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 20px 12px;
}

.profile-social-row a {
    color: #24292f;
    font-weight: 900;
}

.public-category-list {
    display: grid;
}

.public-category-list a {
    padding: 11px 16px;
    border-bottom: 1px solid #e6e6e6;
    color: #3f3f46;
    font-weight: 500;
    text-decoration: none;
}

.public-category-list a:hover {
    background: #f6fff8;
    color: var(--brand-dark);
}

.public-product-stage {
    min-width: 0;
}

.public-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 14px;
}

.public-product-card {
    min-height: 246px;
    display: grid;
    grid-template-rows: 154px minmax(48px, auto) auto auto;
    align-items: start;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 41, 55, .06);
    text-align: center;
}

.public-product-card a:first-child {
    display: grid;
    place-items: center;
    min-width: 0;
}

.public-product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.public-product-card h3 {
    margin: 6px 0 0;
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
}

.public-product-card strong {
    margin-top: 4px;
    color: #000;
    font-size: 14px;
}

.public-product-card form {
    margin-top: 8px;
}

.public-product-card button {
    width: 100%;
    height: 32px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.public-empty {
    grid-column: 1 / -1;
    min-height: 220px;
}

.public-service-rail h2 {
    text-align: center;
    text-decoration: underline;
}

.public-service-mini {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 14px 12px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.public-service-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(31, 41, 55, .12);
    text-decoration: none;
}

.public-service-mini span {
    color: #111827;
}

.public-service-mini img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.public-service-mini h3 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
}

.public-service-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.public-service-empty {
    padding: 22px 12px;
    color: var(--muted);
    text-align: center;
}

.public-profile-footer {
    padding: 26px 28px 40px;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff200;
    color: #1f2937;
    font-size: 13px;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 0 0 10px;
    color: #777;
    font-weight: 500;
}

.subscribe-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    margin-bottom: 18px;
}

.subscribe-form input {
    height: 38px;
    border: 1px solid #ddd;
    padding: 0 12px;
}

.subscribe-form button {
    border: 0;
    background: #e60012;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.payment-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.payment-cards article {
    min-height: 132px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    background: #f3f6f8;
    text-align: center;
}

.payment-cards strong {
    color: #0f315f;
    font-size: 24px;
}

.payment-cards span {
    color: #555;
}

.service-order-page {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .7fr);
    gap: 18px;
    padding: 24px 28px 44px;
}

.service-order-card,
.service-checkout-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.service-order-card {
    padding: 22px;
}

.offer-readonly-card {
    display: grid;
    gap: 18px;
}

.offer-detail-slider {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    background: #eef3f7;
}

.offer-detail-slider img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    scroll-snap-align: start;
}

.offer-readonly-fields label,
.offer-readonly-bottom label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.offer-readonly-fields span,
.offer-readonly-bottom span {
    min-height: 38px;
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--ink);
}

.readonly-package-table .package-row > a,
.readonly-package-table .package-row > b,
.readonly-package-table .package-row > p,
.readonly-package-table .package-row > em {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border-left: 1px solid #e8eef5;
    color: var(--ink);
    font-style: normal;
    text-decoration: none;
}

.readonly-package-table .package-row > a {
    font-weight: 900;
}

.readonly-package-table .package-row > a.active {
    background: #eaf8ee;
    color: var(--brand-dark);
    box-shadow: inset 0 0 0 2px var(--brand);
}

.readonly-package-table .package-row > b {
    color: var(--brand-dark);
    font-size: 18px;
}

.readonly-package-table .feature-row em {
    text-align: center;
    color: #9aa4b2;
    font-size: 18px;
    font-weight: 900;
}

.readonly-package-table .feature-row em.checked {
    color: var(--brand);
}

.package-select-row a {
    align-self: center;
    justify-self: stretch;
    margin: 8px 12px;
    padding: 10px 14px !important;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff !important;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.package-select-row a.active {
    background: #e7f7ec;
    color: var(--brand-dark) !important;
    box-shadow: inset 0 0 0 2px var(--brand);
}

.service-order-media {
    display: grid;
    place-items: center;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.service-order-media img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.service-order-info > span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f7ec;
    color: var(--brand-dark);
    font-weight: 800;
}

.service-order-info h1 {
    margin: 12px 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.service-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.service-package-grid a {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.service-package-grid a.active,
.service-package-grid a:hover {
    border-color: var(--brand);
    background: #f0fbf3;
}

.service-package-grid span {
    color: var(--brand-dark);
    font-size: 22px;
    font-weight: 900;
}

.service-package-grid small {
    color: var(--muted);
    line-height: 1.45;
}

.service-checkout-card {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 22px;
}

.service-checkout-card h2 {
    margin: 0 0 6px;
}

.service-checkout-card form {
    display: grid;
    gap: 14px;
}

@media (max-width: 980px) {
    body.cart-drawer-open .store-top,
    body.cart-drawer-open .market-page {
        width: 100%;
    }

    .store-header,
    .hero-grid,
    .jobs-panel,
    .dashboard,
    .dashboard-grid,
    .course-layout,
    .designer-grid,
    .customer-layout,
    .offer-place-layout,
    .freelancer-profile-layout,
    .public-profile-shell,
    .footer-grid,
    .payment-cards,
    .service-order-page,
    .service-order-card,
    .checkout-page,
    .checkout-form,
    .rag-shell {
        grid-template-columns: 1fr;
    }

    .quick-actions { display: none; }
    .category-strip { grid-template-columns: repeat(4, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { position: static; height: auto; }
    .freelancer-profile-card { position: static; }
    .dashboard-profile,
    .dashboard-stats,
    .course-student-banner { grid-template-columns: 1fr 1fr; }
    .search-line { grid-template-columns: 1fr; }
    .public-products-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
    .cards { grid-template-columns: 1fr; }
    .checkout-top { grid-template-columns: 1fr; height: auto; padding: 12px 16px; }
    .checkout-top nav { flex-wrap: wrap; gap: 14px; }
    .checkout-cart-mini { justify-self: start; }
    .checkout-category-list { display: none; }
    .checkout-page { padding-top: 18px; }
    .checkout-form { gap: 28px; }
    .offer-summary-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .store-bar,
    .store-header,
    .store-nav,
    .market-page,
    .store-footer,
    .category-page,
    .product-detail-page,
    .cart-page,
    .checkout-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .store-bar { justify-content: flex-start; overflow-x: auto; }
    .market-logo strong { font-size: 18px; }
    .search-box { grid-template-columns: 1fr 76px; }
    .rag-result-item,
    .rag-result-item.with-image {
        grid-template-columns: 1fr;
    }
    .rag-result-thumb img {
        width: 100%;
        height: 160px;
    }
    .rag-cart-form,
    .rag-open-link {
        justify-self: flex-start;
        margin-top: 10px;
    }
    .hero-banner {
        min-height: 300px;
        padding: 24px;
    }
    .hero-content h1 { font-size: 27px; }
    .hero-dots {
        left: 24px;
        bottom: 14px;
    }
    .service-grid,
    .public-products-grid,
    .service-package-grid,
    .footer-grid,
    .payment-cards,
    .grid-form,
    .cards {
        grid-template-columns: 1fr 1fr;
    }
    .category-strip { grid-template-columns: repeat(2, 1fr); }
    .job-inputs { grid-template-columns: 1fr; }
    .dashboard-profile,
    .dashboard-stats,
    .course-student-banner { grid-template-columns: 1fr; }
    .dashboard-topbar,
    .dashboard-top-actions,
    .course-list-heading {
        flex-direction: column;
    }
    .inline-filter { width: 100%; min-width: 0; }
    .checkout-customer label,
    .payment-method {
        grid-template-columns: 1fr;
    }
    .checkout-customer h1,
    .checkout-payment h2 {
        margin-bottom: 22px;
    }
    .seller-cta,
    .offer-seller-strip,
    .top-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-seller-strip {
        display: flex;
    }

    .seller-kpi {
        width: 100%;
    }

    .offer-slides img {
        height: 260px;
    }
}

@media (max-width: 620px) {
    .category-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .category-hero h1 {
        font-size: 27px;
    }
}

@media (max-width: 860px) {
    .product-detail,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .public-products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .cart-item {
        grid-template-columns: 78px 1fr;
    }

    .cart-item form {
        grid-column: 2;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .service-grid,
    .grid-form,
    .cards {
        grid-template-columns: 1fr;
    }

    .product-scroll-wrap {
        padding: 14px 38px;
    }

    .product-row {
        grid-auto-columns: 150px;
    }
}
