/* Me'morHub (memorhub.uz) sahifalari. Sayt mavzusi o'zgaruvchilaridan foydalanadi (style.css):
   qora bosh qism (--bk), och asosiy qism (.hub-body), urg'u --grn / --grn-t. Mazmunni hub.js chizadi. */

.hub-nojs { padding: 160px 40px; text-align: center; }
#hub { min-height: 70vh; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- shrift shkalasi
   Me'morHub uchun yagona shkala: 13 / 14 / 16 / 18 / 24 / 32 / 48 px, qalinlik faqat 400 / 600 / 700.
   48 - faqat bosh sahifa sarlavhasi, 32 - sahifa sarlavhasi, 24 - bo'lim / model nomi, 18 - karta sarlavhasi,
   16 - asosiy matn, 14 - yorliq / jadval / tugma, 13 - izoh / sana. Yangi qoidada faqat shu o'zgaruvchilar.
   :where(#hub) - umumiy qoidalar past ustuvorlikda, aniq klasslar (.hub-...) ularni bemalol almashtiradi. */
:root { --t13: 13px; --t14: 14px; --t16: 16px; --t18: 18px; --t24: 24px; --t32: 32px; --t48: 48px; }
@media (max-width: 760px) { :root { --t24: 22px; --t32: 28px; --t48: 36px; } }
body { font-size: var(--t16); line-height: 1.5; }
:where(#hub) :is(h1, h2, h3) { font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
:where(#hub) :is(b, strong) { font-weight: 700; }
:where(#hub) .lead { font-size: var(--t18); line-height: 1.5; }
:where(#hub) .btn { font-weight: 600; }
:where(#hub) .btn.sm { font-size: var(--t14); }
.hub-top.home h1 { font-size: var(--t48); }
.hub-box > b, .hub-body .hub-box > h2 { font-size: var(--t18); font-weight: 600; letter-spacing: 0; }

/* ---------------------------------------------------------------- bosh qism (qora) */
.hub-top { padding: 120px 0 48px; background: var(--bk); }
.hub-top.sm { padding: 112px 0 32px; }
.hub-top h1 { font-size: var(--t32); margin: 16px 0 12px; }
.hub-top .lead { margin-bottom: 28px; max-width: 760px; }
.hub-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--t13); color: var(--mutd); }
.hub-crumbs a:hover { color: var(--fg); }
.hub-crumbs span[aria-hidden] { opacity: .5; }

.hub-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }
.hub-search label { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px;
  border: 1px solid var(--bd2); background: #fff; color: #5f636c; border-radius: 12px; }
.hub-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: var(--t18); color: #0b0c0f; background: transparent; min-height: 52px; }
.hub-search .btn { height: 56px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; font-size: var(--t16); color: var(--mutd); }
.hub-stats b { color: var(--fg); }
.hub-secs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hub-secs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--bd2); font-size: var(--t16); font-weight: 600; transition: background .2s; }
.hub-secs a:hover { background: var(--hov); }
.hub-secs a.on { background: var(--btnw-bg); color: var(--btnw-fg); border-color: var(--btnw-bg); }

/* ---------------------------------------------------------------- asosiy qism (och) */
.hub-body { background: var(--lt); color: var(--ink); padding: 40px 0 96px; }
.hub-body h2 { font-size: var(--t24); margin: 0; letter-spacing: -.02em; }
.hub-row { padding: 0; display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.hub-rowh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.hub-rowh p { color: var(--mut); font-size: var(--t16); }
.hub-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: var(--t16); color: var(--grn-d); }
.hub-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 10px; }
.hub-strip > * { scroll-snap-align: start; }

.hub-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 56px; }
.hub-cat { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; transition: border-color .2s, transform .2s; }
.hub-cat:hover { border-color: #b9b9b3; transform: translateY(-2px); }
.hub-cat b { font-size: var(--t18); font-weight: 600; }
.hub-cat span { font-size: var(--t14); color: var(--mut); }

/* ---------------------------------------------------------------- model kartasi */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hub-card { background: #fff; border: 1px solid var(--line-l); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.hub-card:hover { box-shadow: 0 12px 30px rgba(11, 12, 15, .08); transform: translateY(-2px); }
.hub-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e7e8ea; overflow: hidden; }
.hub-img img { width: 100%; height: 100%; object-fit: contain; }
.hub-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a9ea6; }
.hub-ph .icon { width: 44px; height: 44px; }
.hub-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.hub-badge { white-space: nowrap; padding: 3px 10px; border-radius: 8px; font-size: var(--t14); font-weight: 700; background: var(--ink); color: #fff; }
.hub-badge.paid { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.hub-badge.pick { background: var(--grn); color: #04262a; }
.hub-cb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-ct { font-size: var(--t16); line-height: 1.3; font-weight: 600; }
.hub-ct:hover { color: var(--grn-d); }
.hub-au { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: var(--t16); color: #3d4048; font-weight: 600; }
.hub-au:hover { color: var(--ink); }
.hub-ok { width: 18px; height: 18px; color: var(--grn-d); }
.hub-meta { font-size: var(--t13); color: var(--mut); }
.hub-cnt { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eceeef; font-size: var(--t14); font-weight: 600; color: #3d4048; }
.hub-cnt span { display: inline-flex; align-items: center; gap: 5px; }
.hub-cnt .icon { width: 16px; height: 16px; }

.hub-av { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; overflow: hidden; }
.hub-av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- katalog */
.hub-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hub-side { flex: 1 1 270px; max-width: 320px; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.hub-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hub-side h3 { font-size: var(--t14); font-weight: 700; margin-bottom: 8px; }
.hub-tree a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: var(--t16); color: #3d4048; }
.hub-tree a:hover { background: #f1f2f3; }
.hub-tree a.on { background: #dff5f6; color: #0b5f66; font-weight: 700; }
.hub-tree a small { font-size: var(--t14); color: var(--mut); font-weight: 600; }
.hub-tree .sub { margin-left: 12px; padding-left: 8px; border-left: 2px solid #e6e7e8; }
.hub-tree a.up { justify-content: flex-start; }
.hub-tree .up { color: var(--grn-d); font-weight: 700; }
.hub-side fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hub-chk { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: var(--t16); cursor: pointer; }
.hub-chk input { width: 20px; height: 20px; accent-color: var(--grn-d); }
.hub-sel { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #c9cbcf; border-radius: 8px; font: inherit; font-size: var(--t16); background: #fff; color: var(--ink); }
.hub-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hub-dims label { display: flex; flex-direction: column; gap: 4px; font-size: var(--t14); color: #3d4048; }
.hub-dims input { min-height: 44px; padding: 0 10px; border: 1px solid #c9cbcf; border-radius: 8px; font: inherit; font-size: var(--t16); }
.hub-side .btn { width: 100%; }
.hub-reset { font-size: var(--t16); font-weight: 600; color: var(--grn-d); min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; cursor: pointer; }
.hub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.hub-head p { color: #3d4048; font-size: var(--t16); }
.hub-sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-sorts button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #c9cbcf; background: #fff; color: var(--ink); font-weight: 600; font-size: var(--t16); cursor: pointer; }
.hub-sorts button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.hub-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 12px; }
.hub-pager button { min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #c9cbcf; background: #fff; color: var(--ink); font-weight: 600; font-size: var(--t16); cursor: pointer; }
.hub-pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hub-pager button[disabled] { opacity: .4; cursor: default; }
.hub-filter-btn { display: none; }

.hub-empty { padding: 56px 24px; text-align: center; background: #fff; border: 1px dashed #c9cbcf; border-radius: 14px; color: #3d4048; }
.hub-empty b { display: block; font-size: var(--t18); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.hub-empty .btn { margin-top: 18px; }
.hub-err { padding: 24px; background: #fdecec; color: #8a1c1c; border-radius: 12px; }
.hub-load { padding: 40px 0; color: var(--mut); }

/* ---------------------------------------------------------------- model sahifasi */
.hub-model { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hub-gal { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hub-gal .hub-img { border-radius: 14px; background: #fff; border: 1px solid var(--line-l); }
.hub-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hub-thumbs button { aspect-ratio: 4 / 3; border: 1px solid #c9cbcf; border-radius: 10px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; position: relative; }
.hub-thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.hub-vars { display: flex; flex-direction: column; gap: 8px; }
.hub-vars > div { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-vars button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border: 1px solid #c9cbcf; border-radius: 18px; background: #fff; font: inherit; font-size: var(--t14); cursor: pointer; }
.hub-vars button[aria-pressed="true"] { border: 2px solid var(--ink); padding: 0 11px 0 7px; }
.hub-vars button span { display: inline-flex; }
.hub-vars button i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); margin-left: -6px; }
.hub-vars button i:first-child { margin-left: 0; }
.hub-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.hub-thumbs span { position: absolute; left: 0; right: 0; bottom: 0; font-size: var(--t13); background: rgba(255, 255, 255, .85); padding: 2px; }
.hub-panel { flex: 1 1 380px; min-width: 0; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.hub-panel h1 { font-size: var(--t24); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
.hub-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hub-by a { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.hub-by small { display: block; font-size: var(--t14); color: var(--grn-d); font-weight: 600; }
.hub-acts { display: flex; flex-direction: column; gap: 10px; }
.hub-acts .btn { width: 100%; }
.hub-dl { background: var(--grn); color: #04262a; border-color: var(--grn); font-size: var(--t18); height: 56px; }
.hub-dl:hover { transform: translateY(-2px); }
.hub-note { font-size: var(--t13); color: var(--mut); }
.hub-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid #c9cbcf; background: #fff; color: var(--ink); font-weight: 600; font-size: var(--t16); cursor: pointer; }
.hub-tools button[aria-pressed="true"] { border-color: var(--grn-d); background: #dff5f6; color: #0b5f66; }
.hub-tools button[aria-pressed="true"] svg { fill: currentColor; }
.hub-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0; border-top: 1px solid #eceeef; border-bottom: 1px solid #eceeef; text-align: center; }
.hub-nums b { display: block; font-size: var(--t18); }
.hub-nums span { font-size: var(--t14); color: var(--mut); }
.hub-dl-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 14px; font-size: var(--t16); }
.hub-dl-list dt { color: var(--mut); font-size: var(--t14); }
.hub-dl-list dd { overflow-wrap: anywhere; }
.hub-report { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t14); color: var(--mut); background: none; border: 0; cursor: pointer; padding: 0; }
.hub-box { background: #fff; border: 1px solid var(--line-l); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.hub-box p { max-width: 860px; white-space: pre-line; }
.hub-two { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.hub-two .hub-box { flex: 1 1 420px; min-width: 0; margin-top: 0; }
.hub-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: #eef0f1; font-size: var(--t16); font-weight: 600; }
.hub-tags a:hover { background: #e2e5e7; }
.hub-tbl { overflow-x: auto; }
.hub-tbl table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: var(--t14); text-align: left; }
.hub-tbl th { padding: 10px 12px 10px 0; font-weight: 600; color: var(--mut); border-bottom: 1px solid #dfe1e3; }
.hub-tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid #eceeef; }
.hub-tbl td:first-child { font-weight: 600; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips span { padding: 4px 10px; border-radius: 8px; background: #eef0f1; font-size: var(--t14); }
.hub-chips-more summary { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; font-size: var(--t14); font-weight: 600; color: var(--grn-d); cursor: pointer; }
.hub-chips-more[open] summary { display: none; }
.hub-status { padding: 14px 18px; border-radius: 12px; background: #fff4d6; color: #6b4a00; font-weight: 600; margin-bottom: 20px; }
.hub-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: var(--t16); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------------- muallif */
.hub-prof { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.hub-prof .hub-av { width: 140px; height: 140px; font-size: 52px; border: 2px solid var(--grn); background: var(--bk2); color: var(--fg); }
.hub-prof-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hub-prof-main h1 { margin: 0; font-size: var(--t32); }
.hub-prof-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.hub-st { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--grn); color: #04262a; font-size: var(--t14); font-weight: 700; }
.hub-st.author { background: transparent; border: 1px solid var(--bd2); color: var(--fg); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--bd2); font-weight: 600; font-size: var(--t16); }
.hub-links a:hover { background: var(--hov); }
.hub-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.hub-kpi { background: #fff; border: 1px solid var(--line-l); border-radius: 14px; padding: 18px 20px; }
.hub-kpi b { display: block; font-size: var(--t24); line-height: 1.2; }
.hub-kpi span { color: var(--mut); font-size: var(--t16); }

/* ---------------------------------------------------------------- mualliflar */
.hub-authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-acard { background: #fff; border: 1px solid var(--line-l); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hub-acard > a { display: flex; align-items: center; gap: 14px; }
.hub-acard .hub-av { width: 60px; height: 60px; font-size: 22px; }
.hub-acard b { font-size: var(--t18); display: block; }
.hub-acard small { display: block; font-size: var(--t14); color: #3d4048; }
.hub-acard small.v { color: var(--grn-d); font-weight: 600; }
.hub-prev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hub-prev span { aspect-ratio: 1; border-radius: 8px; background: #e7e8ea; overflow: hidden; }
.hub-prev img { width: 100%; height: 100%; object-fit: cover; }
.hub-acard .hub-meta { margin-top: auto; }
.hub-top-authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hub-top-authors a { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; }
.hub-top-authors .hub-av { width: 52px; height: 52px; font-size: 20px; }

.hub-cta { background: var(--bk); color: var(--fg); border-radius: 18px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.hub-cta div { flex: 999 1 420px; }
.hub-cta h2 { color: var(--fg); margin-bottom: 8px; }
.hub-cta p { color: var(--mutd); }

@media (max-width: 860px) {
  .hub-side { max-width: none; display: none; }
  .hub-side.open { display: flex; }
  .hub-filter-btn { display: inline-flex; }
  .hub-secs, .hub-sorts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; }
  .hub-secs a, .hub-sorts button { flex-shrink: 0; }
  .hub-top { padding-top: 100px; }
  .hub-cta { padding: 28px; }
}

/* ---------------------------------------------------------------- kommentlar */
.hub-c-f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hub-c-f label { font-weight: 700; font-size: var(--t16); }
.hub-c-f textarea, .hub-dlg textarea, .hub-pform input, .hub-pform textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9cbcf; border-radius: 10px; font: inherit; font-size: var(--t16); color: var(--ink); background: #fff; resize: vertical; }
.hub-c-fa { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hub-c-login { margin-bottom: 16px; }
.hub-c-list { display: flex; flex-direction: column; }
.hub-c { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid #eceeef; }
.hub-c.r { padding: 12px 14px; margin-top: 10px; border-top: 0; border-radius: 12px; background: #f5f5f3; }
.hub-c-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hub-c-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t16); }
.hub-c-badge { padding: 1px 8px; border-radius: 6px; background: #dff5f6; color: #0b5f66; font-size: var(--t14); font-weight: 700; }
.hub-c-at { font-size: var(--t13); color: var(--mut); }
.hub-c-t { white-space: pre-line; overflow-wrap: anywhere; font-size: var(--t16); }
.hub-c-del, .hub-c-hid { font-size: var(--t14); color: var(--mut); font-style: italic; }
.hub-c-a { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.hub-c-a button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #3d4048; font-size: var(--t14); font-weight: 600; cursor: pointer; }
.hub-c-a button:hover { background: #eef0f1; }
.hub-c-a button[aria-pressed="true"] { color: #0b5f66; }
.hub-c-a button[aria-pressed="true"] svg { fill: currentColor; }
.hub-c-rs { display: flex; flex-direction: column; }
.hub-c-rep { margin-left: auto; }

.hub-dlg { border: 0; border-radius: 16px; padding: 24px; width: min(480px, calc(100vw - 32px)); color: var(--ink); background: #fff; }
.hub-dlg::backdrop { background: rgba(7, 8, 11, .55); }
.hub-dlg form { display: flex; flex-direction: column; gap: 6px; }
.hub-dlg h2 { font-size: var(--t18); font-weight: 600; margin: 0 0 8px; }
.hub-dlg-l { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: var(--t14); font-weight: 600; }

/* ---------------------------------------------------------------- kabinet */
.hub-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grn); color: #04262a; font-size: var(--t13); display: inline-flex; align-items: center; justify-content: center; }
.hub-ktabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid #dfe1e3; margin-bottom: 28px; }
.hub-ktabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-size: var(--t16); font-weight: 600; color: #3d4048; border-bottom: 3px solid transparent; }
.hub-ktabs a[aria-current] { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.hub-km { display: flex; align-items: center; gap: 12px; }
.hub-km-i { flex-shrink: 0; width: 64px; height: 48px; border-radius: 6px; background: #e7e8ea; overflow: hidden; }
.hub-km-i img { width: 100%; height: 100%; object-fit: cover; }
.hub-km b { font-size: var(--t16); font-weight: 600; }
.hub-km small { display: block; color: var(--mut); font-size: var(--t13); font-weight: 400; }
.hub-ms { padding: 3px 10px; border-radius: 8px; font-size: var(--t14); font-weight: 700; white-space: nowrap; }
.hub-ms.published { background: #e3f6e8; color: #17602a; }
.hub-ms.pending { background: #fff4d6; color: #6b4a00; }
.hub-ms.returned, .hub-ms.rejected, .hub-ms.removed { background: #fde8e8; color: #8a1c1c; }
.hub-fl, .hub-nl { list-style: none; display: flex; flex-direction: column; }
.hub-fl li, .hub-nl li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #eceeef; font-size: var(--t16); }
.hub-fl li:first-child, .hub-nl li:first-child { border-top: 0; }
.hub-fl a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.hub-nl li.new { position: relative; padding-left: 16px; }
.hub-nl li.new:before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--grn); }
.hub-nl a { color: var(--grn-d); font-weight: 600; }
.hub-pform { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hub-pf { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: var(--t16); }
.hub-pform .wide { grid-column: 1 / -1; }

/* Moderatsiya */
.hub-mod-imgs { display: flex; gap: 10px; overflow-x: auto; margin: 16px 0 8px; }
/* AI muqova: moderatsiya qutisi va model sahifasidagi belgi */
.hub-ai-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.hub-ai-row figure { margin: 0; aspect-ratio: 1; border: 1px solid var(--line-l); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.hub-ai-row figure a { display: block; width: 100%; flex: 1; min-height: 0; }
.hub-ai-row img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hub-ai-row figcaption { font-size: var(--t13); color: var(--muted, #6b7075); padding: 4px; }
.hub-ai-vars { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-ai-vars button { width: 72px; height: 72px; padding: 0; border: 1px solid #c9cbcf; border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.hub-ai-vars button[aria-pressed="true"] { border: 2px solid var(--ink); }
.hub-ai-vars img { width: 100%; height: 100%; object-fit: contain; }
.hub-ai-mat { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.hub-ai-mat i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .2); display: inline-block; }
.hub-gal .hub-img { position: relative; }
.hub-ai-badge { position: absolute; left: 10px; bottom: 10px; font-size: var(--t13); line-height: 1; padding: 5px 8px; border-radius: 6px; background: rgba(17, 19, 22, .72); color: #fff; }
@media (max-width: 640px) { .hub-ai-row { grid-template-columns: 1fr; } }
.hub-mod-imgs img { height: 180px; width: auto; border-radius: 10px; border: 1px solid var(--line-l); background: #f3f4f5; display: block; }
.hub-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t14); }
.hub-checks li { padding: 8px 12px; border-radius: 8px; background: #f3f4f5; }
.hub-checks li.warn { background: #fff4e0; color: #7a4a00; }
.hub-checks li.ok { background: #e8f6ee; color: #165a32; }
.hub-mod-f textarea, .hub-mod-team input, .hub-mod-team select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfd3d6; border-radius: 10px; background: #fff; }
.hub-mod-team { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 760px) { .hub-mod-team { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sarlavha (memorhub.uz): menyu, qidiruv, profil */
.hub-nav .wrap { gap: 24px; }
.hub-nav .menu { gap: 2px; align-items: center; }
.hub-nav .menu > a, .hn-ddb { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; font: inherit; font-weight: 600; color: var(--mutd); white-space: nowrap; cursor: pointer; transition: color .2s, background .2s; }
.hub-nav .menu > a:hover, .hub-nav .menu > a.active, .hn-ddb:hover, .hn-ddb[aria-expanded="true"] { color: var(--fg); }
.hub-nav .menu > a.active { font-weight: 700; }
.hn-ddb .icon-sm { transition: transform .2s; }
.hn-ddb[aria-expanded="true"] .icon-sm { transform: rotate(180deg); }
.hn-dd { position: relative; display: inline-flex; }
.hn-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 270px; padding: 8px; display: flex; flex-direction: column;
  background: var(--bk); border: 1px solid var(--bd2); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.hn-pop[hidden] { display: none; }
.hn-pop a, .hn-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; font: inherit; font-size: var(--t16); font-weight: 600; color: var(--fg); text-align: left; white-space: nowrap; cursor: pointer; }
.hn-pop a:hover, .hn-pop button:hover { background: var(--hov); }
.hn-pop small { font-size: var(--t14); font-weight: 500; color: var(--mutd); }
#hn-secs a { justify-content: flex-start; }
#hn-secs .icon-sm { color: var(--grn-t); }
.hn-wait { padding: 12px; font-size: var(--t16); color: var(--mutd); }

.hn-search { flex: 1 1 180px; min-width: 0; max-width: 460px; }
.hn-search label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bd2); border-radius: 12px;
  background: var(--hov2); color: var(--mutd); transition: border-color .2s; }
.hn-search label:focus-within { border-color: var(--grn-t); }
.hn-search input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--t16); color: var(--fg); }
.hn-search input::placeholder { color: var(--mutd); }
.hn-mob, .hn-macc { display: none; }

.hub-nav .nb { gap: 10px; }
/* Mavzu: sarlavhada bitta tugma (joriy mavzu), bosilganda keyingisiga o'tadi - hub.js headerTheme. Telefon menyusida uchalasi. */
.hub-nav .nb .tsw button[aria-pressed="false"] { display: none; }
.hub-nav .nb .tsw button { width: 36px; height: 36px; color: var(--fg); background: transparent; }
.hn-acc { display: inline-flex; align-items: center; gap: 10px; }
.hn-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--bd2); border-radius: 10px; color: var(--fg); transition: background .2s; }
.hn-bell:hover { background: var(--hov); }
.hn-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #c2410c; color: #fff;
  font-size: var(--t13); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hn-pbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 5px; border: 1px solid var(--bd2); border-radius: 12px;
  background: transparent; color: var(--fg); font: inherit; font-size: var(--t14); font-weight: 700; cursor: pointer; transition: border-color .2s; }
.hn-pbtn[aria-expanded="true"] { border-color: var(--fg); }
.hn-pbtn[aria-expanded="true"] .icon-sm { transform: rotate(180deg); }
.hn-pname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-nav .hub-av { background: var(--grn-d); color: #fff; }
.hn-prof .hn-pop { left: auto; right: 0; min-width: 320px; }
.hn-phead { display: flex; flex-direction: column; padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--bd); line-height: 1.35; }
.hn-sep { border-top: 1px solid var(--bd); margin: 6px 0; }
.hn-pop .hn-out, .hn-macc .hn-out { color: #ff9189; }
html[data-theme="light"] .hn-pop .hn-out, html[data-theme="light"] .hn-macc .hn-out { color: #b42318; }

/* O'rta ekran: joy tor - "Me'morTools" tugmasi va ism yashirinadi (ikkalasi profil menyusi / pastki qismda bor) */
@media (max-width: 1340px) {
  .hub-nav .wrap { gap: 14px; }
  .hn-acc > .btn { display: none; }
  .hn-pname { display: none; }
  .hn-pbtn { padding-right: 6px; }
}
@media (max-width: 1180px) {
  .hub-nav .menu > a, .hn-ddb { padding: 0 8px; }
}

/* Telefon va planshet: menyu ochiladigan panelda (style.css bilan bir xil chegara), qidiruv va kabinet havolalari ham shu yerda */
@media (max-width: 1000px) {
  .hn-bar { display: none; }
  .hn-mob { display: block; flex: none; max-width: none; margin: 8px 0 10px; }
  .hn-mob label { min-height: 48px; }
  .hub-nav .menu { align-items: stretch; gap: 0; }
  .hub-nav .menu > a, .hn-ddb { justify-content: space-between; width: 100%; min-height: 54px; padding: 0; border-bottom: 1px solid var(--bd); border-radius: 0; font-size: var(--t18); color: var(--fg); }
  .hn-dd { flex-direction: column; }
  .hub-nav .menu .hn-pop { position: static; min-width: 0; padding: 4px 0 8px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .hub-nav .menu .hn-pop a { padding: 0 8px; border-bottom: 0; }
  .hn-prof { display: none; }
  .hn-macc { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
  .hub-nav .hn-macc > a, .hn-macc > button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: transparent;
    font: inherit; font-size: var(--t18); font-weight: 600; color: var(--fg); text-align: left; cursor: pointer; }
  .hn-mcab > span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
  .hn-mcab small { font-size: var(--t14); font-weight: 500; color: var(--mutd); }
  .hub-nav .hn-macc > .btn { justify-content: center; gap: 10px; min-height: 52px; margin-top: 10px; padding: 0 24px; border: 1px solid var(--btnw-bg); background: var(--btnw-bg); color: var(--btnw-fg); font-weight: 700; }
}

/* ---------------------------------------------------------------- pastki qism: 4 ustun */
@media (min-width: 1181px) { .hub-ft .fg { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.hub-ft .soonf { margin-bottom: 12px; }

/* ---------------------------------------------------------------- "Model joylash" sahifasi (statik, build.py) */
.hub-soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 24px; border: 1px solid var(--bd2); border-radius: 12px;
  background: var(--hov2); font-size: var(--t16); }
.hub-soon .icon-sm { color: var(--grn-t); }
.hub-up { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px 48px; align-items: start; }
.hub-up aside { display: flex; flex-direction: column; gap: 20px; }
.hub-up .hub-box { margin-top: 0; padding: 24px; }
.hub-up .hub-box ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; font-size: var(--t16); color: #3d4048; }
.hub-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.hub-steps li { counter-increment: step; position: relative; padding: 20px 24px 20px 78px; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; }
.hub-steps li:before { content: counter(step); position: absolute; left: 24px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: var(--t16); }
.hub-steps h3 { font-size: var(--t18); font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.hub-steps p { font-size: var(--t16); color: var(--mut); }
@media (max-width: 860px) { .hub-up { grid-template-columns: 1fr; } }
