:root {
  color-scheme: light;
  --ink: #20283a;
  --muted: #788094;
  --soft: #a4aaba;
  --line: #eceef3;
  --paper: #fff;
  --canvas: #f8f9fc;
  --purple: #6d63db;
  --purple-dark: #554bc2;
  --lavender: #f1efff;
  --mint: #e8f5ef;
  --coral: #ff816e;
  --shadow: 0 12px 35px rgba(34, 41, 67, .06);
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }

.sidebar {
  width: 258px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column;
  padding: 25px 17px 17px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 11px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { width: 31px; height: 31px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--purple); color: #fff; font-size: 20px; font-weight: 800; transform: rotate(-5deg); }
.brand-highlight { color: var(--purple); }
.teacher-note { display: flex; align-items: center; gap: 11px; margin: 28px 2px 20px; padding: 13px 12px; background: #f7f6ff; border: 1px solid #eeecff; border-radius: 13px; }
.teacher-note-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e9e6ff; color: var(--purple); font-size: 18px; }
.teacher-note strong, .teacher-note span { display: block; }
.teacher-note strong { font-size: 11px; margin-bottom: 3px; }
.teacher-note div span { color: var(--muted); font-size: 10px; }
.sidebar-sell { width: 100%; padding: 12px; border: 0; border-radius: 11px; background: var(--purple); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 7px 15px #6d63db2b; transition: .2s; }
.sidebar-sell:hover, .register-button:hover { background: var(--purple-dark); transform: translateY(-1px); }
.sidebar-sell span { font-size: 19px; vertical-align: -2px; margin-right: 5px; }
.side-nav { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.nav-caption, .section-kicker { margin: 0; color: #a2a7b5; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.nav-caption { padding: 0 11px 9px; }
.nav-link { position: relative; display: flex; width: 100%; align-items: center; gap: 11px; padding: 10px 11px; margin: 2px 0; color: #697184; font-size: 12px; border: 0; background: transparent; text-align: left; border-radius: 9px; }
.nav-link:hover { color: var(--purple); background: #f7f6ff; }
.nav-link.active { color: var(--purple); background: #f1efff; font-weight: 700; }
.nav-icon { display: inline-grid; width: 17px; place-items: center; font-size: 17px; }
.nav-count { margin-left: auto; color: #9da2b0; font-size: 10px; }
.unread-dot { position: absolute; right: 12px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.category-nav { padding: 20px 0 10px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.text-button { color: var(--purple); border: 0; padding: 3px; background: transparent; font-size: 10px; font-weight: 700; }
.sidebar-category { margin: 3px 0; }
.category-trigger { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #515a6d; text-align: left; font-size: 11px; }
.category-trigger:hover, .category-trigger.selected { color: var(--purple); background: #f8f7ff; }
.category-emoji { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: #f3f4f8; font-size: 13px; }
.category-trigger .arrow { margin-left: auto; color: #a5a9b5; font-size: 13px; transition: transform .2s; }
.category-trigger[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.subcategories { display: none; padding: 2px 0 5px 43px; }
.sidebar-category.open .subcategories { display: block; }
.subcategories button { display: block; width: 100%; border: 0; padding: 6px 0; background: transparent; text-align: left; color: #8a90a0; font-size: 10px; }
.subcategories button:hover { color: var(--purple); }
.sidebar-bottom { margin-top: auto; }
.community-card { padding: 15px 13px 13px; margin-top: 15px; background: #faf9ff; border: 1px solid #efedfb; border-radius: 13px; }
.community-avatars { display: flex; margin-bottom: 10px; }
.community-avatars span { display: grid; place-items: center; width: 27px; height: 27px; margin-right: -6px; border: 2px solid #faf9ff; border-radius: 50%; background: #eeeaff; font-size: 13px; }
.community-card strong { display: block; font-size: 11px; }
.community-card p { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 5px 0 10px; }
.community-card button { padding: 0; border: 0; background: none; color: var(--purple); font-size: 10px; font-weight: 700; }
.community-card button span { margin-left: 4px; }
.sidebar-foot { padding: 14px 3px 0; color: #a5aab6; font-size: 8px; }

.main-content { min-height: 100vh; margin-left: 258px; }
.topbar { height: 74px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 24px; padding: 0 4.3%; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.search-box { display: flex; flex: 1; align-items: center; min-width: 0; max-width: 525px; height: 41px; padding: 0 12px; border: 1px solid #eceef3; border-radius: 11px; background: #fafbfc; color: #8c92a1; }
.search-box:focus-within { border-color: #b7b1f4; background: white; box-shadow: 0 0 0 3px #f1efff; }
.search-icon { font-size: 23px; line-height: 1; transform: rotate(-20deg); margin-right: 8px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #a2a7b4; }
.search-box kbd { padding: 3px 5px; border: 1px solid #eaebf0; border-radius: 4px; color: #9da2af; font-size: 9px; background: white; }
.profile { position: relative; display: flex; flex: none; align-items: center; gap: 8px; min-width: 0; }
.profile[hidden], .profile-menu[hidden], .profile-alert[hidden], .profile-item-alert[hidden] { display: none; }
.profile-name { max-width: 140px; overflow: hidden; color: #545d70; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 1px solid #e8e9ef; border-radius: 9px; background: white; color: #545d70; font-size: 10px; font-weight: 700; white-space: nowrap; }
.profile-button:hover, .profile-button[aria-expanded="true"] { border-color: #b7b1f4; color: var(--purple); }
.profile-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.profile-menu button, .profile-menu a { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #545d70; text-align: left; font-size: 11px; }
.profile-menu button:hover, .profile-menu a:hover { background: #f7f6ff; color: var(--purple); }
.profile-alert, .profile-item-alert { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--coral); }
.location-button { display: flex; align-items: center; gap: 8px; border: 0; padding: 8px 4px; background: transparent; color: #656d7e; white-space: nowrap; font-size: 11px; }
.location-button > span:first-child { color: var(--purple); font-size: 18px; }
.chevron { color: #a5a9b5; font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { position: relative; width: 35px; height: 35px; border: 0; border-radius: 9px; background: transparent; color: #778094; font-size: 19px; }
.icon-button:hover { background: #f4f3fc; }
.notification-button i { position: absolute; width: 5px; height: 5px; right: 8px; top: 7px; border-radius: 50%; background: var(--coral); }
.notification-button .notification-count { position: absolute; top: 0; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: #fff; font-size: 9px; line-height: 1; }
.notification-button .notification-count[hidden] { display: none; }
.login-button, .register-button { height: 36px; padding: 0 14px; border: 1px solid #e8e9ef; border-radius: 9px; color: #545d70; background: white; font-size: 10px; font-weight: 700; white-space: nowrap; }
.register-button { border-color: var(--purple); background: var(--purple); color: #fff; transition: .2s; }
.register-button span { margin-left: 8px; font-size: 14px; }
.mobile-menu, .mobile-brand { display: none; }
.page-wrap { max-width: 1290px; margin: 0 auto; padding: 34px 4.3% 24px; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #9399a8; font-size: 9px; letter-spacing: 1px; font-weight: 700; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px #fff0ed; }
h1, h2, h3, p { margin-top: 0; }
.welcome-row h1 { margin: 10px 0 5px; font: 800 clamp(25px, 3vw, 35px)/1.15 Manrope, sans-serif; letter-spacing: -1.6px; }
.welcome-row h1 span { color: var(--purple); }
.welcome-copy { color: #81889a; margin: 0; font-size: 12px; }
.welcome-stats { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #edeef3; background: white; border-radius: 11px; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #d39241; background: #fff5e6; }
.welcome-stats strong, .welcome-stats span { display: block; }
.welcome-stats strong { font-size: 10px; }
.welcome-stats span { color: #999eac; margin-top: 3px; font-size: 9px; }

.modules-section { margin-top: 30px; }
.module-carousel-controls { display: flex; gap: 6px; }
.module-carousel-controls button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--purple); font-size: 19px; }
.module-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: 12px; overflow-x: auto; padding: 3px 1px 12px; scroll-snap-type: x mandatory; }
.module-card { display: flex; min-height: 205px; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; scroll-snap-align: start; box-shadow: var(--shadow); }
.module-card:hover { border-color: #b7b1f4; }
.module-card-art { display: grid; height: 105px; place-items: center; border-radius: 10px; background: #f1efff; font-size: 40px; }
.module-card:nth-child(3n+2) .module-card-art { background: #e8f5ef; }
.module-card:nth-child(3n) .module-card-art { background: #fff3e8; }
.module-card strong { font-size: 11px; }
.module-card > span:last-child { color: var(--muted); font-size: 10px; line-height: 1.4; }

.quick-categories, .listings-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-kicker { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font: 700 17px Manrope, sans-serif; letter-spacing: -.55px; }
.link-button { padding: 5px 0; border: 0; background: transparent; color: var(--purple); font-size: 10px; font-weight: 700; }
.link-button span { margin-left: 5px; font-size: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.quick-card { display: flex; min-height: 94px; flex-direction: column; justify-content: space-between; padding: 13px; border: 1px solid #eff0f4; border-radius: 12px; background: white; transition: .2s; cursor: pointer; }
.quick-card:hover { border-color: #d7d3ff; transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-emoji { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; font-size: 19px; }
.quick-card strong { margin-top: 13px; font-size: 10px; font-weight: 600; }
.quick-card small { margin-top: 3px; color: #a3a8b5; font-size: 9px; }
.quick-card:nth-child(6n+1) .quick-emoji { background: #f1efff; }
.quick-card:nth-child(6n+2) .quick-emoji { background: #e8f5ef; }
.quick-card:nth-child(6n+3) .quick-emoji { background: #fff2e8; }
.quick-card:nth-child(6n+4) .quick-emoji { background: #fff0f2; }
.quick-card:nth-child(6n+5) .quick-emoji { background: #eaf3ff; }
.quick-card:nth-child(6n) .quick-emoji { background: #f6f1e8; }

.listings-section { margin-top: 39px; }
.listing-heading { margin-bottom: 12px; }
.listing-controls { display: flex; align-items: center; gap: 6px; }
.sort-select { display: flex; align-items: center; gap: 5px; height: 31px; padding: 0 8px; border: 1px solid #e9ebf1; border-radius: 8px; background: white; color: #9298a7; }
.sort-select select { max-width: 110px; border: 0; outline: 0; background: transparent; color: #626b7e; font-size: 9px; }
.view-toggle { width: 30px; height: 30px; border: 1px solid #eaebf0; border-radius: 7px; background: white; color: #a1a6b3; font-size: 13px; }
.view-toggle.active { color: var(--purple); border-color: #dad7ff; background: #f7f6ff; }
.active-filters { display: flex; min-height: 0; gap: 6px; }
.filter-chip { margin-bottom: 12px; padding: 5px 9px; border: 1px solid #e8e5ff; border-radius: 15px; background: #f5f4ff; color: var(--purple); font-size: 9px; }
.filter-chip span { margin-left: 5px; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.listing-card { position: relative; overflow: hidden; border: 1px solid #eceef3; border-radius: 12px; background: white; cursor: pointer; transition: .2s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-image { position: relative; height: 146px; display: grid; place-items: center; overflow: hidden; background: var(--image-bg, #f2f1ff); }
.listing-image::before, .listing-image::after { content: ""; position: absolute; border-radius: 50%; background: #ffffff5c; }
.listing-image::before { width: 130px; height: 130px; right: -15px; top: -50px; }
.listing-image::after { width: 80px; height: 80px; bottom: -37px; left: -13px; }
.product-art { z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; font-size: 50px; filter: drop-shadow(0 11px 9px #20283a1a); }
.product-art.phone { width: 56px; height: 103px; border: 4px solid #333744; border-radius: 12px; background: linear-gradient(145deg,#8ec3b6,#d4e4de); font-size: 30px; }
.product-art.books { width: 105px; height: 79px; border-radius: 5px; background: linear-gradient(90deg,#ff9b80 0 30%,#8279d8 30% 65%,#f2c56c 65%); color: transparent; transform: rotate(-7deg); }
.product-art.chair { width: 77px; height: 92px; border-radius: 20px 20px 9px 9px; background: #d8997b; color: transparent; }
.product-art.laptop { width: 120px; height: 76px; border: 6px solid #444d61; border-bottom-width: 10px; border-radius: 8px; background: linear-gradient(130deg,#d9e8ff,#b9aef9); font-size: 1px; }
.product-art.camera { width: 103px; height: 69px; border-radius: 14px; background: #51596d; color: white; font-size: 36px; }
.product-art.bike { font-size: 73px; width: 140px; }
.product-art.tablet { width: 75px; height: 99px; border: 4px solid #525b6d; border-radius: 10px; background: #bdc9ec; font-size: 30px; }
.product-art.vase { font-size: 68px; }
.listing-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 7px; border-radius: 5px; color: #554bc2; background: #fff; font-size: 8px; font-weight: 700; }
.favorite-button { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 50%; background: #ffffffd9; color: #858b9b; font-size: 17px; }
.favorite-button.liked { color: #fa7580; }
.listing-info { padding: 11px 12px 12px; }
.listing-interactions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; }
.listing-interactions button { padding: 5px 7px; border: 1px solid #e4d7d4; border-radius: 7px; background: #fff; cursor: pointer; }
.listing-interactions button[aria-pressed="true"] { border-color: #b82a21; color: #a51d15; background: #fff1ef; }
.listing-comment { border-bottom: 1px solid #e8e8e8; padding: 10px 0; overflow-wrap: anywhere; }
.listing-comment p { white-space: pre-wrap; }
.listing-comments { margin-top: 20px; }
.listing-controls { flex-wrap: wrap; }
.listing-category { color: #9ba1af; font-size: 8px; }
.listing-info h3 { overflow: hidden; margin: 5px 0 8px; color: #363e50; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.listing-price-row { display: flex; align-items: center; justify-content: space-between; }
.listing-price { color: #272e40; font: 700 14px Manrope, sans-serif; }
.message-mini { padding: 5px 7px; border: 1px solid #eceafc; border-radius: 6px; background: #f7f6ff; color: var(--purple); font-size: 8px; font-weight: 600; }
.seller-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f0f1f5; color: #9ba1af; font-size: 8px; }
.seller-avatar { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f1efff; color: var(--purple); font-size: 9px; font-weight: 700; }
.verified-check { display: inline-grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; background: #e7f5ed; color: #49a672; font-size: 8px; }
.seller-city { margin-left: auto; }
.load-more-wrap { display: flex; justify-content: center; padding: 23px 0 3px; }
.load-more, .outline-button { padding: 10px 15px; border: 1px solid #e4e3f3; border-radius: 8px; background: white; color: #6861ba; font-size: 10px; font-weight: 700; }
.load-more:hover, .outline-button:hover { background: #f7f6ff; border-color: #d5d1fc; }
.load-more span { padding-left: 10px; font-size: 13px; }
.empty-state { padding: 50px 15px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 46px; height: 46px; margin: auto auto 12px; border-radius: 15px; background: #f1efff; color: var(--purple); font-size: 28px; }
.empty-state h3 { margin-bottom: 5px; font: 700 15px Manrope, sans-serif; }
.empty-state p { color: var(--muted); font-size: 11px; }
.trust-strip { display: flex; align-items: center; gap: 12px; margin-top: 33px; padding: 15px 18px; border: 1px solid #e9f0e9; border-radius: 11px; background: #f5faf6; }
.trust-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #e2f2e7; color: #4b9c68; font-weight: 700; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: 10px; }
.trust-strip span { margin-top: 3px; color: #848d91; font-size: 9px; }
.trust-strip button { margin-left: auto; border: 0; background: transparent; color: #52966b; font-size: 9px; font-weight: 700; white-space: nowrap; }
.trust-strip button span { display: inline; margin-left: 4px; }
.main-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 8px; color: #a1a6b2; font-size: 8px; }
.main-footer div { display: flex; gap: 16px; }
.main-footer a:hover { color: var(--purple); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: #20283a73; backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(100%, 430px); max-height: min(85vh, 750px); overflow-y: auto; padding: 28px; border-radius: 17px; background: white; box-shadow: 0 25px 80px #1c22352e; }
.modal-wide { width: min(100%, 900px); }
.my-listing-card { margin: 12px 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.my-listing-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.my-listing-header h3 { margin: 0 0 6px; font-size: 15px; overflow-wrap: anywhere; }
.my-listing-meta { color: var(--muted); font-size: 11px; }
.my-listing-status { flex: none; padding: 6px 9px; border-radius: 8px; background: var(--lavender); color: var(--purple-dark); font-size: 10px; font-weight: 700; }
.my-listing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.my-listing-card .my-photos { margin-top: 14px; }
.modal-close { position: absolute; top: 13px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f5f6f8; color: #73798a; font-size: 19px; }
.modal-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--purple); font: 800 12px Manrope, sans-serif; }
.modal-logo .brand-mark { width: 25px; height: 25px; font-size: 16px; }
.modal h2 { margin: 0 0 7px; font: 800 21px Manrope, sans-serif; letter-spacing: -.6px; }
.modal-intro { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-field { display: block; margin: 12px 0; }
.form-field[hidden] { display: none; }
.form-field > span { display: block; margin-bottom: 6px; color: #545d70; font-size: 10px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 10px 11px; border: 1px solid #e8eaf0; border-radius: 8px; outline: 0; background: #fff; color: #343c4e; font-size: 11px; }
.form-field textarea { min-height: 86px; resize: vertical; }
.modal fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; color: #545d70; font-size: 11px; line-height: 1.5; }
.checkbox-field input { flex: none; margin: 2px 0 0; }
.privacy-details { margin: 16px 0 8px; font-size: 11px; }
.privacy-details summary { cursor: pointer; color: var(--purple); font-weight: 700; }
.privacy-content { max-height: 240px; overflow-y: auto; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: #545d70; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.primary-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #bbb6f4; box-shadow: 0 0 0 3px #f3f2ff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-section-label { margin: 16px 0 2px; color: #a0a5b2; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.primary-submit { width: 100%; margin-top: 9px; padding: 12px; border: 0; border-radius: 8px; background: var(--purple); color: white; font-size: 11px; font-weight: 700; }
.primary-submit:hover { background: var(--purple-dark); }
.form-switch { margin: 15px 0 0; text-align: center; color: var(--muted); font-size: 10px; }
.form-switch button { padding: 0; border: 0; background: transparent; color: var(--purple); font-size: inherit; font-weight: 700; }
.verification-note { display: flex; gap: 9px; margin: 14px 0; padding: 11px; border: 1px solid #e8f0e9; border-radius: 9px; background: #f6faf6; color: #5d8d69; font-size: 9px; line-height: 1.5; }
.verification-note b { font-size: 14px; }
.integration-warning { margin: 10px 0 0; color: #a0a5b1; font-size: 9px; line-height: 1.55; }
.modal-action-row { display: flex; gap: 8px; margin-top: 16px; }
.modal-action-row .primary-submit { margin: 0; }
.conversation-list { display: grid; gap: 8px; margin-top: 14px; }
.conversation-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #eff0f4; border-radius: 10px; background: white; text-align: left; }
.conversation-item:hover { background: #faf9ff; }
.conversation-avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #efedff; color: var(--purple); font-weight: 700; }
.conversation-item strong, .conversation-item small { display: block; }
.conversation-item strong { font-size: 10px; }
.conversation-item small { margin-top: 4px; color: #999eac; font-size: 9px; }
.notification-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; color: var(--muted); font-size: 10px; }
.notification-item { padding: 12px; border: 1px solid #eff0f4; border-radius: 10px; margin-top: 8px; }
.notification-item.unread { border-color: #d9d5ff; background: #faf9ff; }
.notification-item strong { font-size: 11px; }
.notification-item p { margin: 6px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-item small { color: #999eac; font-size: 9px; }
.notification-item .outline-button { display: block; margin-top: 8px; }
.chat-thread { display: grid; gap: 9px; margin: 15px 0; padding: 12px; border-radius: 10px; background: #f8f8fb; }
.chat-bubble { max-width: 84%; padding: 9px 11px; border-radius: 10px; background: #fff; color: #5e6575; font-size: 10px; line-height: 1.5; }
.chat-bubble.mine { justify-self: end; background: #eeecff; color: #5750ae; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 9px; background: #252c3e; color: white; box-shadow: var(--shadow); font-size: 11px; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 1500px) {
  .page-wrap { padding-right: 50px; padding-left: 50px; }
  .topbar { padding-right: max(4.3%, calc((100vw - 1550px)/2)); padding-left: max(4.3%, calc((100vw - 1550px)/2)); }
}
@media (max-width: 1200px) {
  .sidebar { width: 230px; }
  .main-content { margin-left: 230px; }
  .topbar { gap: 13px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .sidebar { width: 258px; transform: translateX(-105%); transition: transform .25s; box-shadow: 15px 0 35px #20283a18; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f5f4ff; color: var(--purple); font-size: 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 5px; white-space: nowrap; font: 800 12px Manrope, sans-serif; }
  .mobile-brand .brand-mark { width: 25px; height: 25px; margin-right: 2px; font-size: 16px; }
  .topbar { height: 64px; padding: 0 20px; gap: 12px; }
  .search-box { max-width: none; }
  .location-button { display: none; }
  .page-wrap { padding: 28px 22px 20px; }
}
@media (max-width: 600px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .mobile-brand { font-size: 0; gap: 0; }
  .mobile-brand .brand-mark { margin: 0; }
  .search-box { height: 36px; padding: 0 8px; }
  .search-box kbd { display: none; }
  .search-box input { font-size: 10px; }
  .search-icon { margin-right: 5px; font-size: 19px; }
  .profile { gap: 4px; }
  .profile-name { max-width: 55px; font-size: 9px; }
  .profile-button { height: 33px; padding: 0 7px; font-size: 9px; }
  .topbar-actions { gap: 4px; }
  .icon-button { display: none; }
  .login-button, .register-button { height: 33px; padding: 0 9px; font-size: 9px; }
  .register-button span { display: none; }
  .page-wrap { padding: 23px 14px 18px; }
  .welcome-row { align-items: start; }
  .welcome-row h1 { font-size: 27px; }
  .welcome-copy { max-width: 250px; font-size: 10px; line-height: 1.5; }
  .welcome-stats { display: none; }
  .quick-categories, .listings-section { margin-top: 29px; }
  .section-heading h2 { font-size: 15px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .quick-card { min-height: 84px; padding: 10px; }
  .quick-card strong { font-size: 9px; }
  .quick-card small { font-size: 8px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .listing-image { height: 125px; }
  .listing-info { padding: 9px; }
  .listing-price { font-size: 12px; }
  .listing-info h3 { font-size: 9px; }
  .listing-controls { gap: 4px; }
  .view-toggle { display: none; }
  .sort-select select { max-width: 82px; font-size: 8px; }
  .trust-strip { align-items: flex-start; padding: 12px; }
  .trust-strip span { line-height: 1.45; }
  .trust-strip button { font-size: 0; }
  .trust-strip button span { font-size: 13px; }
  .main-footer { flex-wrap: wrap; }
  .footer-note { display: none; }
}
.listing-detail-button { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.listing-detail-button:hover { text-decoration: underline; }
.listing-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.listing-image .listing-badge, .listing-image .favorite-button, .listing-image .photo-count { z-index: 2; }
.photo-count { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: #000000a6; color: #fff; font-size: 10px; font-weight: 700; }
.photo-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 14px; scroll-snap-type: x mandatory; }
.photo-gallery img { height: 220px; max-width: 78vw; border-radius: 12px; object-fit: cover; scroll-snap-align: start; display: block; }
.my-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.my-photo { position: relative; width: 64px; height: 64px; }
.my-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.my-photo button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #d64545; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.photo-add { cursor: pointer; display: inline-block; }

:root {
  --ink: #1c3043;
  --muted: #647587;
  --line: #dce5ed;
  --canvas: #f5f8fc;
  --purple: #285990;
  --purple-dark: #193f70;
  --lavender: #eaf2fa;
  --mint: #eaf2fa;
  --coral: #bb2635;
  --shadow: 0 8px 24px rgba(32, 63, 96, .08);
}
body { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sidebar { width: 285px; visibility: hidden; transform: translateX(-105%); transition: transform .25s, visibility .25s; box-shadow: 15px 0 35px #203f6026; }
.sidebar.open { visibility: visible; transform: translateX(0); }
.sidebar-close { align-self: flex-end; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #eaf2fa; color: var(--purple-dark); font-size: 22px; }
.teacher-note, .community-card, .nav-link.active, .nav-link:hover, .category-trigger:hover, .category-trigger.selected { background: #edf5fc; border-color: #dce9f5; }
.teacher-note-icon, .community-avatars span { background: #dcecf8; }
.main-content { margin-left: 0; }
.topbar { height: 70px; padding: 0 max(24px, calc((100% - 1220px)/2)); gap: 20px; background: #fff; border-bottom: 3px solid #bb2635; }
.mobile-menu { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: #edf4fa; color: var(--purple-dark); font-size: 18px; }
.header-brand { display: flex; align-items: center; flex: none; white-space: nowrap; font: 800 17px Manrope, sans-serif; letter-spacing: -.7px; }
.header-brand > span:first-child { margin-right: 5px; font-size: 19px; }
.header-nav { display: flex; align-items: center; gap: 19px; margin-left: auto; white-space: nowrap; font-size: 12px; font-weight: 700; }
.header-nav a:hover { color: var(--purple); }
.header-nav button, .filter-button { border: 0; border-radius: 7px; background: #b51f30; color: #fff; padding: 10px 13px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.header-nav button:hover, .filter-button:hover { background: #891625; }
.topbar-actions { margin-left: 0; }
.profile-button:hover, .profile-button[aria-expanded="true"] { border-color: #a7c7df; }
.profile-menu button:hover, .profile-menu a:hover { background: #edf5fc; }
.page-wrap { max-width: 1220px; padding: 0 24px 24px; }
.welcome-row { position: relative; min-height: 200px; align-items: center; margin: 0 -24px; padding: 30px 24px 10px; background: linear-gradient(110deg, #edf5fc, #e3f0fa); }
.welcome-text { position: relative; z-index: 1; max-width: 550px; }
.welcome-row h1 { margin: 0 0 10px; color: #1b3042; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.welcome-copy { color: #51677a; font-size: 13px; line-height: 1.5; }
.welcome-art { align-self: end; width: min(42%, 400px); height: 175px; object-fit: contain; object-position: bottom; }
.search-panel { position: relative; display: flex; align-items: stretch; gap: 7px; margin-top: -1px; padding: 8px; border-radius: 8px; background: #285990; box-shadow: 0 5px 16px #274e7820; }
.search-panel:focus-within { z-index: 16; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-box { flex: 1; max-width: none; height: 43px; border: 0; border-radius: 5px; background: #fff; }
.search-box:focus-within { border: 0; box-shadow: 0 0 0 3px #a5c9e8; }
.search-box input { font-size: 13px; }
.search-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1; max-height: min(60vh, 430px); overflow-y: auto; padding: 5px; border: 1px solid #cadbe8; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px #173c6633; }
.search-suggestions[hidden] { display: none; }
.search-suggestion { padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: #eaf2fa; }
.search-suggestion strong, .search-suggestion small { display: block; overflow-wrap: anywhere; }
.search-suggestion strong { color: #1c3043; font-size: 13px; }
.search-suggestion small { margin-top: 3px; color: #526a80; font-size: 11px; }
.search-status { margin: 18px 0; color: #526a80; font-size: 13px; }
.page-wrap.search-active .welcome-row, .page-wrap.search-active .modules-section,
.page-wrap.search-active .quick-categories, .page-wrap.search-active .trust-strip { display: none; }
.page-wrap.search-active .search-panel { margin-top: 18px; }
.location-button { display: flex; min-width: 160px; justify-content: center; padding: 0 12px; border-radius: 5px; background: #fff; font-size: 11px; }
.filter-button { background: #b51f30; }
.modules-section { margin-top: 28px; }
.module-carousel-controls { display: none; }
.module-carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; padding: 3px 1px 5px; }
.module-card, .module-card:first-child {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  min-height: 210px; padding: 16px; overflow: hidden; border: 1px solid #e8b8b2; border-radius: 14px;
  background: linear-gradient(145deg, #fffafa, #fcece9); box-shadow: 0 5px 16px #5633360d;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.module-card:nth-child(4n+2) { background: linear-gradient(145deg, #fbfdff, #e8f0f5); border-color: #b7cfda; }
.module-card:nth-child(4n+3) { background: linear-gradient(145deg, #fff, #edf5fc); border-color: #b7cfda; }
.module-card:nth-child(4n) { background: linear-gradient(145deg, #fffafa, #f9e3df); border-color: #eabbb4; }
.module-card:hover, .module-card:focus-visible { transform: translateY(-4px); border-color: #da291c; box-shadow: 0 12px 24px #56333620; }
.module-card:focus-visible { outline: 3px solid #a91e15; outline-offset: 3px; }
.module-card-art, .module-card:nth-child(n) .module-card-art {
  display: grid; flex: none; width: 44px; height: 44px; place-items: center; border: 1px solid #edc0b9;
  border-radius: 12px; background: #fff; font-size: 23px; box-shadow: 0 4px 10px #6c3e3a12;
  transition: transform .3s ease;
}
.module-illustration { position: absolute; top: 10px; right: 9px; width: 52%; max-width: 150px; height: 105px; object-fit: contain; transform-origin: 60% 70%; transition: transform .35s ease; pointer-events: none; }
.module-card:hover .module-illustration, .module-card:focus-visible .module-illustration { transform: translateY(-5px) rotate(4deg) scale(1.05); }
.module-card:hover .module-card-art, .module-card:focus-visible .module-card-art { transform: translateY(-3px) rotate(-5deg); }
.module-card strong { margin-top: 48px; color: #1e4771; font-size: 15px; line-height: 1.25; }
.module-access { padding: 3px 7px; border-radius: 5px; background: #e4effa; color: #193f70; font-size: 10px; font-weight: 700; }
.module-card > span:last-child { color: #536b80; font-size: 12px; line-height: 1.5; }
.module-card:nth-child(4n+2) strong { color: #264f69; }
.module-card:nth-child(4n+2) > span:last-child { color: #486474; }
.module-card:nth-child(4n+3) strong { color: #264f69; }
.module-card:nth-child(4n+3) > span:last-child { color: #486474; }
.section-kicker { color: #6b8aa4; }
.section-heading h2 { font-size: 18px; }
.quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick-card { min-height: 80px; border-color: var(--line); border-radius: 8px; }
.quick-card:hover { border-color: #9dc2dc; }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.listing-card {
  border: 1px solid #e8b8b2; border-radius: 14px; background: linear-gradient(145deg, #fffafa, #fcece9);
  box-shadow: 0 5px 16px #5633360d; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.listing-card:nth-child(4n+2) { border-color: #b7cfda; background: linear-gradient(145deg, #fbfdff, #e8f0f5); }
.listing-card:nth-child(4n+3) { border-color: #b7cfda; background: linear-gradient(145deg, #fff, #edf5fc); }
.listing-card:nth-child(4n) { border-color: #eabbb4; background: linear-gradient(145deg, #fffafa, #f9e3df); }
.listing-card:hover, .listing-card:focus-within { transform: translateY(-4px); border-color: #da291c; box-shadow: 0 12px 24px #56333620; }
.listing-card:focus-within { outline: 2px solid #a91e15; outline-offset: 3px; }
.listing-image { height: 160px; background: linear-gradient(145deg, #f7e3dd, #fdf7f1); }
.listing-card:nth-child(4n+2) .listing-image { background: linear-gradient(145deg, #dcebf0, #f4f9fa); }
.listing-card:nth-child(4n+3) .listing-image { background: linear-gradient(145deg, #e1edf8, #f8fbff); }
.listing-image::before, .listing-image::after { display: none; }
.listing-photo, .product-art { transition: transform .35s ease; }
.listing-card:hover .listing-photo, .listing-card:focus-within .listing-photo { transform: scale(1.04); }
.listing-card:hover .product-art, .listing-card:focus-within .product-art { transform: translateY(-5px) rotate(4deg) scale(1.05); }
.listing-badge { max-width: calc(100% - 50px); color: #1e4771; background: #fff; line-height: 1.3; }
.favorite-button { color: #9c564e; box-shadow: 0 3px 8px #5633361c; }
.favorite-button.liked { color: #da291c; }
.no-photo-label { position: absolute; bottom: 9px; z-index: 1; padding: 4px 8px; border-radius: 6px; background: #ffffffd9; color: #674d4a; font-size: 10px; }
.listing-info { padding: 14px; }
.listing-category { color: #536b80; font-size: 11px; }
.listing-info h3 { margin: 7px 0 12px; color: #1e4771; font-size: 14px; line-height: 1.35; }
.listing-price { color: #a51e2e; font-size: 15px; }
.message-mini { padding: 7px 8px; background: #fff; border-color: #e8b8b2; color: #973b31; font-size: 10px; }
.seller-row { color: #536b80; font-size: 10px; border-color: #dce5ed; }
.seller-row > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-city { white-space: nowrap; }
.seller-avatar { flex: none; background: #fff; color: #973b31; }
.filter-chip { background: #edf5fc; border-color: #d9e8f4; }
.modal { border: 1px solid #dce5ed; border-top: 4px solid #bb2635; border-radius: 12px; box-shadow: 0 25px 80px #173c6633; }
.modal h2 { color: #1b3042; }
.modal-intro, .form-field > span, .checkbox-field, .form-switch { font-size: 13px; }
.form-field input, .form-field select, .form-field textarea, .primary-submit { font-size: 14px; }
.privacy-details, .privacy-content, .my-listing-meta, .conversation-item strong, .notification-item strong { font-size: 13px; }
.conversation-item small, .notification-item p, .notification-item small, .chat-bubble { font-size: 12px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #83b1d6; box-shadow: 0 0 0 3px #e6f2fb; }
.conversation-item:hover, .notification-item.unread { background: #edf5fc; border-color: #d3e6f5; }
.verification-note { border-color: #d3e6f5; background: #edf5fc; color: #285990; }
.chat-bubble.mine, .conversation-avatar { background: #e7f2fa; color: #285990; }
.main-footer { margin: 30px -24px -24px; padding: 25px 24px; background: #1e4676; color: #e0ebf5; font-size: 11px; }
.main-footer a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 1050px) {
  .header-nav { gap: 10px; }
  .header-nav a:nth-of-type(3), .header-nav a:nth-of-type(4) { display: none; }
  .module-carousel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .header-brand { font-size: 14px; }
  .header-nav { display: none; }
  .profile { margin-left: auto; }
  .topbar-actions { margin-left: auto; }
  .profile:not([hidden]) + .topbar-actions { margin-left: 0; }
  .icon-button { display: inline-grid; place-items: center; }
  .page-wrap { padding: 0 14px 20px; }
  .welcome-row { min-height: 170px; margin: 0 -14px; padding: 24px 14px 10px; }
  .welcome-text { max-width: 65%; }
  .welcome-row h1 { font-size: clamp(22px, 5vw, 30px); }
  .welcome-copy { max-width: none; font-size: 11px; }
  .welcome-art { display: block; width: 38%; height: auto; }
  .search-panel { flex-wrap: wrap; }
  .search-input-wrap { flex: 1 0 100%; }
  .location-button { flex: 1; min-width: 0; min-height: 38px; }
  .filter-button { min-height: 38px; }
  .module-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .module-card, .module-card:first-child { min-height: 195px; padding: 12px; }
  .module-illustration { width: 52%; height: 86px; }
  .module-card strong { margin-top: 34px; font-size: 13px; }
  .module-card > span:last-child { font-size: 11px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-image { height: 135px; }
  .listing-info { padding: 10px; }
  .listing-info h3 { font-size: 12px; }
  .listing-price { font-size: 13px; }
  .message-mini { font-size: 9px; padding: 6px; }
  .main-footer { margin: 30px -14px -20px; padding: 22px 14px; }
}
@media (max-width: 390px) {
  .header-brand { font-size: 12px; }
  .login-button, .register-button { padding: 0 7px; }
  .module-card-art, .module-card:nth-child(n) .module-card-art { width: 38px; height: 38px; font-size: 20px; }
  .module-card strong { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .module-card, .module-card-art, .module-illustration, .listing-card, .listing-photo, .product-art { transition: none; }
  .module-card:hover, .module-card:focus-visible, .module-card:hover .module-card-art, .module-card:focus-visible .module-card-art, .module-card:hover .module-illustration, .module-card:focus-visible .module-illustration,
  .listing-card:hover, .listing-card:focus-within, .listing-card:hover .listing-photo, .listing-card:focus-within .listing-photo, .listing-card:hover .product-art, .listing-card:focus-within .product-art { transform: none; }
}

/* Öğretmenben home layout */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f8fafc;
  --paper: #fff;
  --purple: #008f78;
  --purple-dark: #007563;
  --lavender: #e8f7f3;
  --mint: #e8f7f3;
  --coral: #e45b6b;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

body { background: #f8fafc; color: #0f172a; }
.app-shell { display: flex; min-height: 100vh; flex-direction: column; }
.main-content { display: flex; flex: 1; min-height: 0; flex-direction: column; margin-left: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; min-height: 68px; height: auto;
  align-items: center; gap: clamp(14px, 2.4vw, 34px); padding: 10px max(20px, calc((100% - 1680px)/2));
  background: #ffffffed; border: 0; border-bottom: 1px solid #e2e8f0; backdrop-filter: blur(14px);
}
.header-brand { flex: 0 0 auto; gap: 7px; color: #0f172a; font: 800 21px Manrope, sans-serif; letter-spacing: -.8px; }
.header-brand > span { white-space: nowrap; }
.header-brand > span .brand-highlight { color: #008f78; }
.header-brand svg { width: 38px; height: 38px; fill: #f4ba4e; stroke: #0f172a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-search { position: relative; display: flex; flex: 1 1 360px; min-width: 160px; max-width: 650px; align-items: center; gap: 8px; margin: 0 auto; }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-box { max-width: none; height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.search-box:focus-within { border-color: #008f78; box-shadow: 0 0 0 3px #008f7818; }
.search-icon { margin-right: 7px; color: #64748b; font-size: 22px; }
.search-box input { color: #0f172a; font-size: 13px; }
.search-box input::placeholder { color: #64748b; }
.location-button { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 10px; }
.location-button > span:first-child { color: #008f78; }
.filter-button { display: none; width: 38px; height: 38px; padding: 0; place-items: center; background: #e8f7f3; color: #007563; font-size: 16px; }
.topbar-actions { display: flex; flex: none; align-items: center; gap: 14px; margin-left: 0; }
.login-button, .register-button { height: 40px; padding: 0 15px; border-radius: 8px; font-size: 12px; }
.login-button { border-color: transparent; color: #0f172a; }
.login-button:hover { background: #f1f5f9; }
.register-button { border-color: #008f78; background: #008f78; color: white; }
.register-button:hover { background: #007563; }
.profile-button { height: 38px; border-color: #e2e8f0; color: #0f172a; font-size: 11px; }
.profile-button:hover, .profile-button[aria-expanded="true"] { border-color: #008f78; color: #007563; }
.profile-name { color: #334155; font-size: 11px; }
.icon-button { color: #475569; }
.profile-menu button:hover, .profile-menu a:hover { background: #e8f7f3; color: #007563; }
.mobile-menu { display: none; }

.page-wrap { width: min(100%, 1720px); max-width: none; flex: 1; margin: 0 auto; padding: 16px 22px 0; }
.home-layout { display: grid; grid-template-columns: minmax(0, 19fr) minmax(0, 53fr) minmax(250px, 28fr); align-items: start; gap: 14px; }
.sidebar.category-panel {
  position: static; visibility: visible; width: auto; height: auto; min-height: 0; max-height: none; overflow: visible;
  padding: 12px 13px; transform: none; border: 1px solid #e2e8f0; border-radius: 12px;
  background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .025); transition: none;
}
.sidebar-close { display: none; }
.category-heading { align-items: center; padding: 1px 3px 10px; border-bottom: 1px solid #e2e8f0; }
.category-heading h2 { margin: 0; color: #0f172a; font: 700 16px Manrope, sans-serif; }
.category-heading > div { display: flex; gap: 6px; }
.category-heading .text-button { color: #008f78; font-size: 10px; }
.category-nav { padding: 6px 0 0; border: 0; }
.sidebar-category { margin: 0; }
.category-trigger {
  min-height: 41px; gap: 9px; padding: 6px 8px; border-radius: 8px; color: #1e293b;
  font-size: 11px; transition: background-color .15s ease, color .15s ease;
}
.category-trigger:hover, .category-trigger.selected { color: #007563; background: #e8f7f3; }
.category-emoji { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: transparent; color: #1e293b; }
.category-emoji svg, .quick-emoji svg { width: 21px; height: 21px; }
.category-trigger .arrow { margin-left: auto; }
.subcategories { padding-left: 43px; }
.subcategories button { min-height: 27px; color: #64748b; font-size: 10px; }
.subcategories button:hover { color: #008f78; }
.center-column, .right-rail { min-width: 0; }
.welcome-row {
  position: relative; min-height: 170px; overflow: hidden; align-items: center; margin: 0;
  padding: 21px 24px; border: 0; border-radius: 14px;
  background: linear-gradient(110deg, #ddf4f2 0%, #e8f7f3 56%, #d9f3eb 100%);
}
.welcome-row::after { position: absolute; right: 12%; bottom: -96px; width: 250px; height: 190px; border-radius: 50%; background: #c3ece2; content: ""; opacity: .7; }
.welcome-text { z-index: 1; max-width: 59%; }
.welcome-eyebrow { margin: 0 0 7px; color: #008f78; font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.welcome-row h1 { margin: 0 0 8px; color: #0f172a; font: 800 clamp(19px, 2vw, 27px)/1.12 Manrope, sans-serif; letter-spacing: -.7px; }
.welcome-copy { max-width: 390px; margin: 0; color: #334155; font-size: 11px; line-height: 1.5; }
.welcome-cta { margin-top: 12px; padding: 8px 13px; border: 0; border-radius: 7px; background: #008f78; color: #fff; font-size: 10px; font-weight: 700; }
.welcome-cta:hover { background: #007563; }
.welcome-cta span { padding-left: 6px; font-size: 13px; }
.welcome-art { z-index: 1; align-self: center; width: 37%; height: 135px; object-fit: contain; object-position: center; }

.listings-section { margin-top: 20px; }
.section-heading { align-items: center; margin-bottom: 11px; }
.section-heading h2, .listing-heading h2 { margin: 0; color: #0f172a; font: 750 17px Manrope, sans-serif; letter-spacing: -.45px; }
.listing-heading { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 10px; }
.all-listings-link { flex: none; margin-right: auto; color: #008f78; font-size: 10px; }
.listing-controls { flex: none; gap: 5px; }
.sort-select { height: 29px; padding: 0 5px; border-color: #e2e8f0; border-radius: 7px; }
.sort-select select { max-width: 100px; color: #475569; font-size: 9px; }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.listing-card {
  overflow: hidden; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025); transition: box-shadow .18s ease, border-color .18s ease;
}
.listing-card:nth-child(n) { border-color: #e2e8f0; background: #fff; }
.listing-card:hover, .listing-card:focus-within { transform: none; border-color: #a7d8cd; box-shadow: 0 7px 18px rgba(15, 23, 42, .08); }
.listing-card:focus-within { outline-color: #008f78; }
.listing-image { height: auto; aspect-ratio: 1.42; background: #f1f5f9; }
.listing-image .favorite-button { top: 7px; right: 7px; }
.listing-photo { object-fit: cover; }
.no-photo-label { bottom: 8px; border: 1px solid #e2e8f0; background: #ffffffed; color: #64748b; }
.listing-info { padding: 9px 10px 8px; }
.listing-category { display: none; }
.listing-info h3 { display: -webkit-box; min-height: 32px; overflow: hidden; margin: 0 0 5px; color: #0f172a; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-detail-button { display: -webkit-box; overflow: hidden; line-height: inherit; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-price-row { min-height: 20px; }
.listing-price { color: #008f78; font: 800 14px Manrope, sans-serif; }
.seller-row { display: flex; min-width: 0; align-items: center; gap: 5px; margin-top: 5px; padding-top: 6px; color: #64748b; font-size: 9px; }
.seller-city { min-width: 0; margin: 0 auto 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-row time { flex: none; color: #94a3b8; font-size: 8px; }
.message-mini { flex: none; padding: 4px 6px; border-color: #d7eee8; background: #f1faf7; color: #007563; font-size: 8px; }
.listing-interactions { gap: 4px; margin-top: 6px; font-size: 9px; }
.listing-interactions > span { margin-right: auto; color: #64748b; }
.listing-interactions button { padding: 3px 5px; border-color: #e2e8f0; border-radius: 5px; color: #64748b; font-size: 8px; }
.listing-interactions button[aria-pressed="true"] { border-color: #a7d8cd; color: #007563; background: #e8f7f3; }
.load-more-wrap { padding: 14px 0 0; }
.load-more, .outline-button { border-color: #b7ddd4; color: #007563; }
.load-more:hover, .outline-button:hover { border-color: #008f78; background: #e8f7f3; }
.empty-state > span { background: #e8f7f3; color: #008f78; }
.trust-strip { margin-top: 16px; padding: 10px 12px; border-color: #d7eee8; border-radius: 10px; background: #f1faf7; }
.trust-icon { background: #ddf4eb; color: #008f78; }
.trust-strip strong { color: #0f172a; }
.trust-strip span { color: #64748b; }

.right-rail { display: grid; gap: 12px; }
.modules-section, .news-panel { min-width: 0; margin: 0; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .025); }
.modules-section .section-heading, .news-panel .section-heading { margin-bottom: 9px; }
.modules-section .section-heading h2, .news-panel .section-heading h2 { font-size: 15px; }
.module-carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow: visible; padding: 0; }
.module-card, .module-card:first-child {
  position: relative; display: flex; min-width: 0; min-height: 74px; height: 74px; align-items: center; justify-content: center;
  overflow: hidden; padding: 7px; border: 1px solid transparent; border-radius: 10px; box-shadow: none; text-align: center;
}
.module-card:nth-child(n) { border-color: transparent; }
.module-card:nth-child(n):hover, .module-card:nth-child(n):focus-visible { transform: translateY(-1px); border-color: #a7d8cd; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.module-illustration { position: static; width: 39px; height: 35px; flex: 0 0 auto; margin: 0 auto 2px; object-fit: contain; transform: none; }
.module-card strong { z-index: 1; max-width: 100%; margin: 0; color: #0f172a; font-size: 10px; line-height: 1.25; }
.module-card > span:last-child { color: #475569; font-size: 10px; }
.module-card .module-access { display: none; }
.module-card:nth-child(n) .module-card-art { display: none; }
.module-card { flex-direction: column; }
.module-card:nth-child(1) { background: #e5f2ff; }
.module-card:nth-child(2) { background: #e0f7f3; }
.module-card:nth-child(3) { background: #fff4dc; }
.module-card:nth-child(4) { background: #f0eaff; }
.module-card:nth-child(5) { background: #e8f7ec; }
.module-card:nth-child(6) { background: #e3f3ff; }
.module-card:nth-child(7) { background: #ffedf1; }
.module-card:nth-child(8) { background: #e9edff; }
.module-card:hover .module-illustration, .module-card:focus-visible .module-illustration { transform: none; }
.news-panel .section-heading { display: flex; }
.news-panel .section-heading .link-button { margin-left: auto; color: #008f78; font-size: 9px; white-space: nowrap; }
.home-news-list { display: grid; }
.home-news-item + .home-news-item { border-top: 1px solid #e2e8f0; }
.home-news-link { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px 0; }
.home-news-link > img, .home-news-placeholder { width: 66px; height: 52px; flex: 0 0 66px; border-radius: 7px; background: #eef5f3; object-fit: cover; }
.home-news-placeholder { display: grid; place-items: center; color: #008f78; font: 800 18px Manrope, sans-serif; }
.home-news-content { display: block; min-width: 0; }
.home-news-content strong { display: -webkit-box; overflow: hidden; color: #0f172a; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-news-content time { display: block; margin-top: 5px; color: #64748b; font-size: 8px; }
.home-news-link:hover .home-news-content strong { color: #007563; }
.news-loading, .news-empty-message, .news-error-message { margin: 6px 0; color: #64748b; font-size: 10px; line-height: 1.5; }
.news-error-message { color: #b42332; }
.home-news-list > a { color: #007563; font-size: 10px; font-weight: 700; }
.main-footer { display: flex; min-height: 60px; align-items: center; justify-content: center; gap: 22px; margin: 16px -22px 0; padding: 14px 22px; border-top: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 10px; }
.main-footer div { display: flex; flex-wrap: wrap; gap: 22px; }
.main-footer a:hover { color: #008f78; }

@media (max-width: 1200px) {
  .home-layout { grid-template-columns: minmax(205px, 24fr) minmax(0, 76fr); }
  .right-rail { grid-column: 2; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .modules-section { grid-row: span 1; }
  .module-carousel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .module-card, .module-card:first-child { min-height: 80px; height: 80px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .topbar { flex-wrap: wrap; gap: 9px 12px; padding: 9px 16px; }
  .mobile-menu { display: inline-grid; flex: none; color: #007563; background: #e8f7f3; }
  .header-brand { font-size: 18px; }
  .header-search { order: 5; flex: 1 0 100%; max-width: none; }
  .filter-button { display: none; }
  .location-button { display: none; }
  .topbar-actions { margin-left: auto; }
  .profile { margin-left: auto; }
  .page-wrap { padding: 14px 16px 0; }
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sidebar.category-panel {
    position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, calc(100vw - 42px)); height: 100vh; max-height: 100vh;
    overflow-y: auto; padding: 18px 14px; visibility: hidden; transform: translateX(-105%);
    border-radius: 0 14px 14px 0; box-shadow: 15px 0 35px #0f172a26; transition: transform .22s ease, visibility .22s ease;
  }
  .sidebar.category-panel.open { visibility: visible; transform: translateX(0); }
  .sidebar-close { display: block; margin: 0 0 10px auto; }
  .category-trigger { min-height: 42px; font-size: 12px; }
  .right-rail { grid-column: 1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .module-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card, .module-card:first-child { min-height: 76px; height: 76px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-row { min-height: 165px; }
}
@media (max-width: 600px) {
  .topbar { min-height: 60px; gap: 8px; padding: 8px 12px; }
  .mobile-menu { width: 32px; height: 32px; }
  .header-brand { gap: 4px; font-size: 16px; }
  .header-brand svg { width: 30px; height: 30px; }
  .header-search { gap: 6px; margin-top: 2px; }
  .search-box { height: 38px; }
  .search-box input { font-size: 12px; }
  .filter-button { width: 36px; height: 36px; }
  .topbar-actions { gap: 3px; margin-left: 0; }
  .icon-button { display: none; }
  .login-button, .register-button { height: 33px; padding: 0 8px; font-size: 9px; }
  .profile { gap: 3px; margin-left: auto; }
  .profile-name { display: none; }
  .profile-button { height: 32px; padding: 0 7px; font-size: 9px; }
  .page-wrap { padding: 10px 10px 0; }
  .home-layout { gap: 11px; }
  .welcome-row { min-height: 158px; padding: 16px 14px; border-radius: 12px; }
  .welcome-text { max-width: 65%; }
  .welcome-eyebrow { font-size: 7px; }
  .welcome-row h1 { margin-bottom: 6px; font-size: clamp(19px, 5.2vw, 24px); }
  .welcome-copy { font-size: 9px; line-height: 1.4; }
  .welcome-cta { margin-top: 9px; padding: 7px 9px; font-size: 9px; }
  .welcome-art { width: 36%; height: 112px; }
  .listings-section { margin-top: 15px; }
  .listing-heading { gap: 5px 8px; }
  .section-heading h2, .listing-heading h2 { font-size: 15px; }
  .all-listings-link { font-size: 9px; }
  .listing-controls { flex: 1 0 100%; justify-content: flex-end; }
  .sort-select { height: 27px; }
  .sort-select select { max-width: 93px; font-size: 8px; }
  .listing-grid { gap: 7px; }
  .listing-image { aspect-ratio: 1.22; }
  .listing-info { padding: 7px; }
  .listing-info h3 { min-height: 30px; font-size: 10px; }
  .listing-price { font-size: 12px; }
  .seller-row { flex-wrap: wrap; gap: 4px; }
  .seller-city { font-size: 8px; }
  .message-mini { font-size: 8px; }
  .listing-interactions { gap: 3px; }
  .listing-interactions button { padding: 3px 4px; font-size: 7px; }
  .right-rail { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .modules-section, .news-panel { padding: 10px; }
  .module-carousel { gap: 7px; }
  .module-card, .module-card:first-child { min-height: 78px; height: 78px; padding: 6px; }
  .module-illustration { width: 36px; height: 34px; }
  .module-card strong { font-size: 10px; }
  .home-news-link > img, .home-news-placeholder { width: 64px; height: 50px; flex-basis: 64px; }
  .home-news-content strong { font-size: 10px; }
  .trust-strip { margin-top: 12px; }
  .trust-strip span { line-height: 1.45; }
  .main-footer { flex-wrap: wrap; gap: 8px 16px; margin: 14px -10px 0; padding: 14px 10px; font-size: 9px; }
  .main-footer div { justify-content: center; gap: 12px; }
}
@media (max-width: 370px) {
  .header-brand { font-size: 14px; }
  .header-brand svg { width: 27px; height: 27px; }
  .topbar { column-gap: 6px; }
  .login-button, .register-button { padding: 0 6px; font-size: 8px; }
  .welcome-row { min-height: 150px; }
  .welcome-text { max-width: 68%; }
  .welcome-art { width: 31%; }
  .listing-interactions button { padding: 3px; font-size: 7px; }
}
@media (min-width: 601px) and (max-width: 850px) {
  .main-footer { margin-right: -16px; margin-left: -16px; }
}

.home-layout[hidden], .member-dashboard[hidden] { display: none; }
.member-dashboard { display: grid; grid-template-columns: minmax(190px, 19fr) minmax(0, 62fr) minmax(190px, 20fr); align-items: start; gap: 18px; }
.member-sidebar, .member-categories { min-width: 0; padding: 18px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.member-sidebar h2, .member-categories h2 { margin: 0 0 16px; color: #0f172a; font-size: 19px; }
.member-identity { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border-radius: 10px; background: #e8f8f3; }
.member-identity div { min-width: 0; }
.member-identity strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.member-identity small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.member-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #dce5e8; color: #64748b; }
.member-avatar svg { width: 25px; fill: currentColor; stroke: currentColor; }
.member-nav { display: grid; margin-top: 12px; }
.member-nav button, .member-categories button { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px 9px; border: 0; border-bottom: 1px solid #e8edf1; background: transparent; color: #0f172a; text-align: left; font-size: 13px; }
.member-nav button:last-child, .member-categories button:last-child { border-bottom: 0; }
.member-nav button:hover, .member-nav button.active, .member-categories button:hover { border-radius: 8px; background: #e4f7f0; color: #008f78; }
.member-nav button.active { font-weight: 700; }
.member-nav svg, .member-categories svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-nav .profile-item-alert { margin-left: auto; }
.member-categories button span:nth-child(2) { flex: 1; }
.member-categories button span:last-child { color: #94a3b8; font-size: 20px; }
.member-center { min-width: 0; }
.member-welcome { display: flex; min-height: 165px; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; padding: 22px 26px; border-radius: 14px; background: #dff7f0; }
.member-welcome > div { position: relative; z-index: 1; min-width: 0; }
.member-welcome p { margin: 0; color: #334155; font-size: 13px; line-height: 1.5; }
.member-welcome p:first-child { margin-bottom: 7px; color: #008f78; font-weight: 700; }
.member-welcome h1 { margin: 0 0 7px; color: #0f172a; font-size: clamp(20px, 2vw, 27px); line-height: 1.2; overflow-wrap: anywhere; }
.member-welcome img { width: 32%; max-width: 220px; height: 125px; object-fit: contain; }
#member-content { min-width: 0; margin-top: 24px; }
#member-content > h2 { font-size: 22px; }
.member-listing-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.member-listing-heading h2 { margin: 0; font-size: 23px; }
#member-listing-count { display: inline-block; padding: 4px 9px; border-radius: 20px; background: #008f78; color: #fff; font-size: 11px; vertical-align: middle; }
.member-listing-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.member-listing-controls select { max-width: 100%; padding: 8px; border: 1px solid #d5e0e7; border-radius: 7px; background: #fff; color: #0f172a; font-size: 12px; }
.member-listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member-listing-card { min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 2px 3px #0f172a0b; }
.member-listing-image { display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #f1f5f9; color: #64748b; font-size: 11px; text-align: center; }
.member-listing-image img { width: 100%; height: 100%; object-fit: cover; }
.member-listing-info { padding: 12px; }
.member-listing-info h3 { display: -webkit-box; overflow: hidden; min-height: 32px; margin: 0 0 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.member-listing-info > strong { color: #008f78; font-size: 17px; }
.member-listing-info p, .member-listing-info small { display: block; margin: 6px 0; color: #475569; font-size: 11px; overflow-wrap: anywhere; }
.member-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.member-listing-actions time { margin-right: auto; color: #64748b; font-size: 10px; }
.member-listing-actions button { padding: 6px 8px; border: 1px solid #bde8d9; border-radius: 6px; background: #e3f7ef; color: #007563; font-size: 10px; font-weight: 700; }
.member-empty { grid-column: 1 / -1; padding: 20px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #64748b; }
.member-listing-note { margin: 14px 0; color: #64748b; font-size: 11px; }
#recipient-results .conversation-item small { display: block; margin-top: 4px; color: #64748b; }

@media (max-width: 1050px) {
  .member-dashboard { grid-template-columns: minmax(175px, 25%) minmax(0, 1fr); }
  .member-categories { grid-column: 1 / -1; }
  .member-categories nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .member-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .member-dashboard { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .member-sidebar, .member-categories { padding: 12px; }
  .member-sidebar h2, .member-categories h2 { margin-bottom: 10px; font-size: 17px; }
  .member-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .member-nav button, .member-categories button { gap: 8px; padding: 9px 5px; font-size: 12px; }
  .member-categories { grid-column: auto; }
  .member-categories nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-welcome { min-height: 130px; padding: 16px; }
  .member-welcome h1 { font-size: 19px; }
  .member-welcome p { font-size: 11px; }
  .member-welcome img { width: 28%; height: 90px; }
  .member-listing-grid { gap: 8px; }
  .member-listing-info { padding: 9px; }
  .member-listing-info > strong { font-size: 14px; }
}

.sidebar-category { padding: 5px 0 8px; border-bottom: 1px solid #e8edf1; }
.sidebar-category:last-child { border-bottom: 0; }
.category-trigger { min-height: 30px; padding: 4px; font-weight: 700; }
.subcategories { display: block; padding: 0 0 0 39px; }
.subcategories button { min-height: 22px; padding: 3px 0; }
.subcategories .category-more[hidden] { display: none; }
.subcategories .category-expand { color: #008f78; font-weight: 700; }
@media (min-width: 851px) {
  .listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .listing-info { padding: 7px; }
  .seller-row { flex-wrap: wrap; }
}
@media (min-width: 1650px) {
  .listing-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.intro-dialog { width: min(460px, calc(100vw - 32px)); padding: 32px; border: 1px solid #d5eae4; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 24px 80px #0f172a40; }
.intro-dialog::backdrop { background: #0f172a99; }
.intro-icon { display: grid; width: 52px; height: 52px; margin-bottom: 16px; place-items: center; border-radius: 16px; background: #def6ed; color: #008f78; font-size: 25px; }
.intro-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.intro-dialog p { color: #475569; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.intro-dialog .checkbox-field { margin: 18px 0; }
.intro-dialog .primary-submit { width: 100%; }
