/* Hallmark · shape: app screens, campus marketplace · genre: modern-minimal · theme: custom warm paper and Saudi green · job: browse and sell · v2.0.0
 * app: entry, role, auth, market, product, buyer, seller and admin screens · imagery: seller photos and sample Wikimedia photos · signature: the university gate and the product card
 * axes: light/geometric-sans/warm-green · posture: restrained · contrast: pass · fold: pass */
@font-face {
  font-family: "Alexandria";
  src: url("fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-02BA, U+2000-206F, U+20AC, U+2122;
}
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08E3-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plex-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0100-02BA, U+2000-206F, U+20AC, U+2122; }

:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --surface: #fdfbf6;
  --surface-2: #ece9df;
  --surface-3: #e2ded1;
  --ink: #14231d;
  --ink-2: #2d3c34;
  --muted: #5c6a62;
  --muted-2: #66736b;
  --line: #e3dfd3;
  --line-strong: #cdc8b8;
  --green: #0b5c43;
  --green-700: #084b37;
  --green-100: #e2efe9;
  --green-200: #c6e1d5;
  --green-300: #9dcbb7;
  --gold: #8a5f12;
  --gold-100: #f5ead4;
  --gold-200: #ead6ad;
  --danger: #a53229;
  --danger-100: #f7e6e2;
  --danger-200: #edc9c2;
  --blue: #2d5f78;
  --blue-100: #e4eef3;
  --overlay: rgba(11, 26, 20, 0.55);
  --shadow-1: 0 1px 2px rgba(20, 35, 29, 0.06);
  --shadow-2: 0 22px 48px -30px rgba(20, 35, 29, 0.34);
  --font-body: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Alexandria", "Plex Arabic", "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1240px;
  --gutter: 28px;
  --header-h: 76px;
  --dur: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--line-strong) var(--paper); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--green);
}
html[lang="ar"] body { line-height: 1.8; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-block-start: -60px; inset-inline-start: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { inset-block-start: 12px; }
.icon { flex-shrink: 0; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.76rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* header */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 10px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; color: var(--muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--green); background: var(--green-100); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-btn { height: 38px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 0.83rem; font-weight: 500; transition: border-color var(--dur) var(--ease); }
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.account { position: relative; }
.account summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 4px 8px 4px 4px; border-radius: 12px; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { background: var(--surface-2); }
.account-name { font-size: 0.87rem; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); padding: 8px; z-index: 60; }
.account-menu__head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu__name { font-weight: 600; font-size: 0.92rem; }
.account-menu__meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.account-menu a, .account-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; font-size: 0.88rem; text-align: start; color: var(--ink-2); }
.account-menu a:hover, .account-menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px var(--gutter) 18px; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; font-size: 0.95rem; color: var(--ink-2); }
.mobile-menu a:hover { background: var(--surface-2); }

/* buttons, forms, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-family: var(--font-body); font-size: 0.94rem; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.btn--primary { background: var(--green); color: var(--surface); }
.btn--primary:hover { background: var(--green-700); }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--green); color: var(--green); }
.btn--ghost { background: transparent; color: var(--green); padding-inline: 10px; }
.btn--ghost:hover { background: var(--green-100); }
.btn--danger { background: var(--danger-100); color: var(--danger); }
.btn--danger:hover { background: var(--danger-200); }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 0.83rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 0.84rem; color: var(--ink-2); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease);
}
.input:hover, select.input:hover, textarea.input:hover { border-color: var(--muted-2); }
.input:focus-visible, select.input:focus-visible, textarea.input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.input::placeholder, textarea.input::placeholder { color: var(--muted-2); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] select.input { background-position: 12px 21px, 17px 21px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { font-size: 0.78rem; color: var(--muted); }
.form-error { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 11px; background: var(--danger-100); color: var(--danger); font-size: 0.86rem; line-height: 1.5; }
.form-success { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 11px; background: var(--green-100); color: var(--green-700); font-size: 0.86rem; line-height: 1.5; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge--sale { background: var(--gold-100); color: var(--gold); }
.badge--rent { background: var(--green-100); color: var(--green-700); }
.badge--sold { background: var(--surface-3); color: var(--ink-2); }
.badge--gold { background: var(--gold-100); color: var(--gold); }
.badge--danger { background: var(--danger-100); color: var(--danger); }
.badge--info { background: var(--blue-100); color: var(--blue); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-size: 0.87rem; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--green-100); color: var(--green-700); font-size: 0.78rem; font-weight: 600; flex-shrink: 0; letter-spacing: 0; }
.avatar--sm { width: 26px; height: 26px; font-size: 0.68rem; }
.avatar--lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar[data-tint="1"] { background: var(--gold-100); color: var(--gold); }
.avatar[data-tint="2"] { background: var(--blue-100); color: var(--blue); }
.avatar[data-tint="3"] { background: var(--green-200); color: var(--green-700); }
.avatar[data-tint="4"] { background: var(--danger-100); color: var(--danger); }

/* page structures */
main { min-height: 55vh; }
.page-head { padding-block: 44px 26px; }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 62ch; font-size: 1rem; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.section-title { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* entry */
.entry { padding-block: 52px 24px; }
.entry-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.entry-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.15; }
html[lang="en"] .entry-hero h1 { line-height: 1.05; letter-spacing: -0.035em; }
.entry-hero p { margin-top: 14px; max-width: 56ch; color: var(--muted); font-size: 1.04rem; }
.entry-side { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.entry-count { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.entry-count strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink); font-weight: 600; }
.search-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; color: var(--muted); transition: border-color var(--dur) var(--ease); }
.search-field:focus-within { border-color: var(--green); outline: 2px solid var(--green-200); outline-offset: 1px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: 0.95rem; color: var(--ink); outline: none; }
.search-field input::placeholder { color: var(--muted-2); }
.search-field--lg { height: 56px; }
.uni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 36px 12px; }
.uni-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 18px; min-height: 188px; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.uni-card:hover { border-color: var(--green); background: var(--surface); }
.uni-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uni-city { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.uni-card h2 { font-size: 1.22rem; line-height: 1.4; margin-top: 2px; }
.uni-card__en { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.uni-card__go { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 0.86rem; font-weight: 500; border-top: 1px solid var(--line); }
.uni-count { font-size: 0.74rem; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--green-100); color: var(--green-700); white-space: nowrap; }
.uni-count--zero { background: var(--surface-2); color: var(--muted); }
.empty-state { text-align: start; padding: 46px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--muted); }
.empty-state .icon { color: var(--muted-2); margin-bottom: 12px; }
.empty-state h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.empty-state p { max-width: 46ch; font-size: 0.92rem; }
.empty-state .btn { margin-top: 16px; }

/* roles */
.roles { padding-block: 40px 40px; }
.roles > .container { max-width: 1000px; }
.roles .back-link { margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.87rem; margin-bottom: 18px; }
.back-link:hover { color: var(--green); }
.roles h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.roles > .container > p { margin-top: 10px; max-width: 62ch; color: var(--muted); }
.role-context { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--green-100); color: var(--green-700); font-size: 0.84rem; }
.role-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; max-width: 920px; }
.role-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color var(--dur) var(--ease); }
.role-row:hover { border-color: var(--green); }
.role-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.role-row--admin .role-icon { background: var(--surface-2); color: var(--ink-2); }
.role-body h2 { font-size: 1.18rem; }
.role-body p { margin-top: 3px; color: var(--muted); font-size: 0.9rem; max-width: 56ch; }
.role-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 0.76rem; color: var(--muted); }
.role-action { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 0.9rem; font-weight: 500; }

/* auth */
.auth { padding-block: 46px 60px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.auth-card h1 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.auth-card > p { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-block: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 9px 10px; border-radius: 9px; font-size: 0.88rem; color: var(--muted); }
.auth-tab.is-active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-1); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { margin-top: 4px; }
.auth-switch { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.auth-switch a { color: var(--green); font-weight: 500; }
.demo-box { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.demo-box h2 { font-size: 0.98rem; font-family: var(--font-body); font-weight: 600; }
.demo-box p { margin-top: 4px; font-size: 0.82rem; color: var(--muted); }
.demo-box .btn { margin-top: 10px; }
.demo-credentials { margin-top: 8px; font-size: 0.76rem; color: var(--muted); }
.auth-aside { background: var(--green); color: var(--surface); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.auth-aside h2 { font-size: 1.9rem; line-height: 1.3; }
.auth-aside p { margin-top: 10px; color: var(--green-200); font-size: 0.94rem; max-width: 34ch; }
.auth-aside__role { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.12); font-size: 0.86rem; width: fit-content; }
.auth-aside__list { display: flex; flex-direction: column; gap: 12px; }
.auth-aside__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: var(--green-200); }
.auth-aside__list .icon { color: var(--green-200); margin-top: 2px; }
.auth-aside__uni { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; font-size: 0.85rem; color: var(--green-200); }

/* market */
.market { padding-block: 34px 10px; }
.market-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.market-hero h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.market-hero p { margin-top: 6px; color: var(--muted); max-width: 56ch; font-size: 0.94rem; }
.market-search { width: min(420px, 100%); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 4px; }
.chip-row::-webkit-scrollbar { display: none; }
.filters-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; }
.filters-bar .field { flex: 1 1 150px; }
.filters-bar .field--price { flex: 0 1 96px; }
.filters-bar .field--check { flex: 0 0 auto; justify-content: flex-end; }
.filters-bar .field--check .field-label { visibility: hidden; }
.filters-bar .field--check .checkbox { min-height: 42px; }
.filters-bar .checkbox { padding-bottom: 2px; }
.filters-bar .input { min-height: 42px; font-size: 0.88rem; padding-block: 8px; }
.filters-bar .field > label { font-size: 0.78rem; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 22px 14px; }
.results-count { font-size: 0.9rem; color: var(--muted); }
.results-count strong { color: var(--ink); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--dur) var(--ease); }
.product-card:hover { border-color: var(--green); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px; color: var(--muted-2); background: var(--surface-2); }
.product-card__badges { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px 15px; flex: 1; }
.product-card__title { font-size: 0.98rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.product-card__meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; flex-wrap: wrap; }
.product-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.product-card__prices { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; height: 58px; margin-top: auto; padding-top: 10px; overflow: hidden; }
.price-main { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.price-unit { font-size: 0.74rem; color: var(--muted); }
.price-rent { font-size: 0.82rem; color: var(--green-700); line-height: 1.35; }
.product-card__seller { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.product-card__seller .avatar { width: 22px; height: 22px; font-size: 0.6rem; }
.load-more { display: flex; justify-content: center; margin-block: 28px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); }

/* product page */
.product-page { padding-block: 26px 40px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--green); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); grid-template-areas: "media info" "desc info"; gap: 34px; align-items: start; }
.product-media { grid-area: media; min-width: 0; }
.gallery__main { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 74px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); padding: 0; }
.gallery__thumb.is-active { border-color: var(--green); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { margin-top: 8px; font-size: 0.7rem; color: var(--muted-2); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.product-info { display: flex; flex-direction: column; gap: 14px; position: sticky; grid-area: info; inset-block-start: calc(var(--header-h) + 16px); }
.product-info h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; }
.product-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.price-box { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.price-box .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-box .row + .row { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.price-box .label { font-size: 0.82rem; color: var(--muted); }
.price-box .value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.price-box .value small { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.buy-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.buy-box .btn { width: 100%; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.mode-switch__btn { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.mode-switch__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.rent-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rent-summary { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.86rem; color: var(--muted); padding-top: 4px; }
.rent-summary strong { color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.seller-box { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.seller-box__body { flex: 1; min-width: 0; }
.seller-box__name { font-weight: 600; font-size: 0.92rem; }
.seller-box__meta { font-size: 0.76rem; color: var(--muted); }
.detail-list { border-top: 1px solid var(--line); }
.detail-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: end; color: var(--ink-2); }
.product-desc { grid-area: desc; margin-top: 26px; }
.product-desc h2, .similar h2 { font-size: 1.25rem; margin-bottom: 10px; }
.product-desc p { max-width: 72ch; color: var(--ink-2); line-height: 1.8; white-space: pre-line; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-size: 0.86rem; }
.notice .icon { color: var(--muted); margin-top: 2px; }
.similar { margin-top: 44px; }
.similar .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* dashboard shell */
.dash { padding-block: 34px 20px; }
.dash-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-side { position: sticky; inset-block-start: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-side__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.dash-side__user { display: flex; align-items: center; gap: 9px; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-size: 0.89rem; }
.dash-nav a:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-700); font-weight: 500; }
.dash-nav .count { margin-inline-start: auto; font-size: 0.72rem; background: var(--surface-2); border-radius: var(--radius-pill); padding: 1px 7px; color: var(--muted); }
.dash-nav a[aria-current="page"] .count { background: var(--surface); color: var(--green-700); }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.dash-head p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.dash-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dash-tabs a { padding: 8px 13px; border-radius: var(--radius-pill); font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.dash-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.dash-tabs a[aria-current="page"] { background: var(--green); color: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.stat-card__label { font-size: 0.8rem; color: var(--muted); }
.stat-card__value { margin-top: 6px; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.stat-card__hint { margin-top: 4px; font-size: 0.73rem; color: var(--muted-2); }
.stat-card--accent { background: var(--green); border-color: var(--green); }
.stat-card--accent .stat-card__label, .stat-card--accent .stat-card__hint { color: var(--green-200); }
.stat-card--accent .stat-card__value { color: var(--surface); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2 { font-size: 1.1rem; }
.panel__head p { margin-top: 3px; font-size: 0.82rem; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th { text-align: start; font-weight: 500; font-size: 0.76rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 0.86rem; vertical-align: middle; white-space: nowrap; }
.table .product-cell span { white-space: normal; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table .product-cell { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.table .product-cell img { width: 38px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.table .product-cell span { font-weight: 500; line-height: 1.4; }
.table-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); }

/* seller form */
.form-page { padding-block: 30px 50px; max-width: 1040px; margin-inline: auto; }
.form-page__head { margin-bottom: 22px; }
.form-page__head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-page__head p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr); gap: 22px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; }
.form-card__hint { font-size: 0.8rem; color: var(--muted); margin-top: -8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.mode-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-option { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 0.85rem; cursor: pointer; background: var(--surface); }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option:has(input:checked) { border-color: var(--green); background: var(--green-100); color: var(--green-700); font-weight: 500; }
.mode-option:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.image-upload { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--surface-2); }
.image-upload .icon { color: var(--muted); margin-inline: auto; margin-bottom: 8px; }
.image-upload p { font-size: 0.84rem; color: var(--muted); }
.image-upload .btn { margin-top: 10px; }
.image-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.image-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 4/3; }
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.image-item__main { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; font-size: 0.65rem; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--green); color: var(--surface); }
.image-item__remove { position: absolute; inset-block-start: 5px; inset-inline-end: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20, 35, 29, 0.72); color: var(--surface); display: grid; place-items: center; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 4px; flex-wrap: wrap; }
.form-side { position: sticky; inset-block-start: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.form-note { font-size: 0.78rem; color: var(--muted); }

/* messages & orders */
.message-list { display: flex; flex-direction: column; gap: 10px; }
.message-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.message-item.is-unread { border-color: var(--green-300); background: var(--green-100); }
.message-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.message-item__who { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; }
.message-item__meta { font-size: 0.75rem; color: var(--muted); }
.message-item__body { margin-top: 8px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.7; }
.message-item__foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.order-item__media { width: 74px; height: 62px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.order-item__media img { width: 100%; height: 100%; object-fit: cover; }
.order-item__body { min-width: 0; }
.order-item__title { font-size: 0.93rem; font-weight: 500; line-height: 1.4; }
.order-item__meta { margin-top: 3px; font-size: 0.78rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.order-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-item__amount { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.order-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 9px 13px; border-bottom: 2px solid transparent; font-size: 0.86rem; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }

/* admin charts */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 18px; }
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.legend-key { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.legend-swatch--gold { background: var(--gold); }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-gridline { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.chart-value { fill: var(--ink); font-size: 10px; font-weight: 600; font-family: var(--font-body); }
.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 0.8rem; }
.bar-row__label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--green); }
.bar-row__value { text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.range-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.range-form .field { flex: 0 0 150px; }
.range-form .input { min-height: 42px; font-size: 0.86rem; }
.range-form .hint { flex: 1 1 200px; font-size: 0.76rem; color: var(--muted); padding-bottom: 5px; }
.revenue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.revenue-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.revenue-card__label { font-size: 0.8rem; color: var(--muted); }
.revenue-card__value { margin-top: 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* dialog */
dialog { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
dialog::backdrop { background: var(--overlay); }
.dialog-inner { padding: 24px; }
.dialog-inner h2 { font-size: 1.2rem; }
.dialog-inner p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.dialog-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.dialog-close:hover { color: var(--ink); }
dialog[open] { animation: dialog-in var(--dur) var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.dialog-summary { margin-top: 14px; border-top: 1px solid var(--line); }
.dialog-summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.dialog-summary dt { color: var(--muted); }
.dialog-summary dd { margin: 0; font-weight: 500; }

/* flash + footer */
.flash { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--radius); background: var(--green-100); color: var(--green-700); font-size: 0.88rem; margin-block: 12px; }
.flash a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-inline-start: auto; }
.flash--error { background: var(--danger-100); color: var(--danger); }
.site-footer { background: var(--ink); color: var(--paper); margin-top: 60px; padding-block: 48px 22px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer .brand-mark { background: var(--green); color: var(--surface); }
.site-footer .brand-name { color: var(--surface); }
.site-footer .brand-tag { color: #a9b8b0; }
.footer-about { margin-top: 12px; max-width: 40ch; color: #b7c5bc; font-size: 0.86rem; line-height: 1.7; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: #d5e0d9; margin-bottom: 10px; }
.footer-col a { display: block; padding-block: 4px; color: #a9b8b0; font-size: 0.85rem; }
.footer-col a:hover { color: var(--surface); }
.footer-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.13); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8d9e94; font-size: 0.74rem; line-height: 1.6; }
.footer-note a { color: #c6d3cb; text-decoration: underline; text-underline-offset: 2px; }
.footer-note p { max-width: 70ch; }

/* responsive */
@media (max-width: 1120px) {
  .product-grid, .similar .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.is-open { display: block; }
  .brand-tag { display: none; }
  .entry-hero { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .entry-side { max-width: 460px; }
  .auth-grid { grid-template-columns: 1fr; max-width: 560px; }
  .auth-aside { order: 2; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; grid-template-areas: "media" "info" "desc"; }
  .product-info { position: static; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; }
  .dash-side__card { padding: 10px; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; overflow: visible; scrollbar-width: none; }
  .dash-nav a { white-space: nowrap; flex: 1 1 auto; }
  .dash-nav .count { display: none; }
  .form-layout { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .range-form .field { flex: 1 1 130px; }
}
@media (max-width: 720px) {
  .header-actions > .btn { display: none; }
  .product-grid, .similar .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card__title { font-size: 0.9rem; }
  .product-card__body { padding: 11px 12px 12px; }
  .price-main { font-size: 1.05rem; }
  .uni-grid { grid-template-columns: 1fr; }
  .entry { padding-block: 34px 10px; }
  .entry-hero h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .role-row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .role-icon { width: 44px; height: 44px; border-radius: 12px; }
  .role-action { grid-column: 1 / -1; justify-content: flex-end; padding-top: 4px; }
  .auth-card, .auth-aside { padding: 22px; }
  .order-item { grid-template-columns: 60px minmax(0, 1fr); }
  .order-item__media { width: 60px; height: 54px; }
  .order-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-name { display: none; }
  .account summary { padding: 4px; }
  .filters-bar .field { flex: 1 1 140px; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .mode-options { grid-template-columns: 1fr; }
  .rent-fields { grid-template-columns: 1fr; }
  .revenue-grid { grid-template-columns: 1fr; }
  .dash-head .btn { width: 100%; }
}
@media (max-width: 480px) {
  .product-grid, .similar .product-grid { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .product-card__title { min-height: 0; }
  .search-field { height: 48px; }
  .uni-card { min-height: 0; }
  .auth-tabs { flex-direction: column; }
  .header-actions { gap: 6px; }
  .lang-btn { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
