/* ART-SH.N — yumshoq geometrik uslub.
   Palitra: chang ko'k (ink), osmon ko'k, shaftoli, sariyog' sariq, krem, qum. */
:root {
  --ink: #2f3757;
  --ink-2: #444d72;
  --sky: #8ec3e6;
  --sky-soft: #e3f0f9;
  --peach: #f3a493;
  --peach-soft: #fde8e2;
  --butter: #f5d08a;
  --butter-soft: #fcf1d9;
  --sage: #a9c3a0;
  --cream: #faf3ea;
  --sand: #f1e6d8;

  --bg: var(--cream);
  --panel: #fffdf9;
  --panel-2: var(--sand);
  --line: #eadfcf;
  --text: var(--ink);
  --muted: #868ba0;
  --accent: var(--ink);
  --gold: #c98a1e;
  --ok: #4f9a72;
  --danger: #d0664f;
  --radius: 20px;
  --shadow: 0 2px 4px rgba(47, 55, 87, .04), 0 8px 24px rgba(47, 55, 87, .06);
  --shadow-hover: 0 4px 8px rgba(47, 55, 87, .06), 0 16px 36px rgba(47, 55, 87, .10);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
body {
  background:
    radial-gradient(600px 400px at 100% 0%, var(--sky-soft), transparent 70%),
    radial-gradient(500px 380px at 0% 100%, var(--peach-soft), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 600; }
h1 { font-size: 30px; font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: .01em; }
h2 { font-size: 18px; } h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; background: rgba(250, 243, 234, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); letter-spacing: .05em; font-size: 23px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.brand .logo { width: 46px; height: 46px; display: block; }
.brand .name { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: "Cinzel", var(--serif); font-weight: 600; letter-spacing: .03em; font-size: 21px; color: #222a6b; }
.brand small { font-family: var(--font); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a.active { color: var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.topbar-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.bottomnav { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
  .bottomnav {
    display: flex; position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 20; background: rgba(255, 253, 249, .95);
    backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-hover);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a { flex: 1; text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; border-radius: 14px; }
  .bottomnav a .ic { display: block; font-size: 18px; line-height: 1.3; }
  .bottomnav a.active { color: var(--ink); background: var(--sand); }
  .view { padding-bottom: 110px !important; }
}

.view { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--sand) url("/static/img/hero.jpg") left center / cover no-repeat;
  aspect-ratio: 16 / 7; margin-bottom: 28px; display: flex; align-items: center; justify-content: flex-end; box-shadow: var(--shadow);
}
.hero .txt { width: 38%; padding: 24px 4% 24px 0; }
.hero h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1; margin: 0 0 14px; color: var(--ink); }
.hero .hero-brand { margin: 0 0 14px; }
.hero .hero-logo { width: clamp(200px, 26vw, 340px); height: auto; display: block; }
@media (max-width: 760px) { .hero .hero-logo { width: 220px; margin: 0 auto; } .hero .txt { text-align: center; } }
.hero .sub { letter-spacing: .06em; font-size: clamp(12px, 1.3vw, 16px); color: var(--ink-2); line-height: 1.6; text-transform: uppercase; }
.hero .sub b { font-weight: 600; display: block; color: var(--ink); }
@media (max-width: 760px) {
  .hero { aspect-ratio: auto; display: block; background-size: 175% auto; background-position: left top; padding-top: 56%; }
  .hero .txt { width: auto; padding: 18px 20px 22px; background: var(--panel); }
}

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); padding: 11px 20px; border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: background .2s, transform .1s, box-shadow .2s; box-shadow: 0 4px 14px rgba(47, 55, 87, .18);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--sand); }
.btn.danger { background: var(--peach-soft); border: 0; color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: #fbd9cf; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 5px 8px; border-radius: 10px; font-size: 15px; }
.icon-btn:hover { color: var(--ink); background: var(--sand); }

.eye {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: all .2s;
}
.eye.on { color: var(--ink); background: var(--butter-soft); border-color: var(--butter); }
.eye svg { width: 20px; height: 20px; }

label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Layout pieces ---------- */
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { margin: 0; flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 18px; scrollbar-width: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; color: var(--ink-2); font-size: 14px; transition: all .2s;
}
.chip:hover { background: var(--sand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip .n { opacity: .6; margin-left: 4px; font-size: 12px; }
.empty {
  text-align: center; padding: 40px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: rgba(255, 253, 249, .6);
}
.empty img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto 10px; border-radius: 24px; }

/* ---------- Catalog ---------- */
.dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.dir-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s; display: block;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dir-card .cv { aspect-ratio: 4 / 3; background: var(--sand) center / cover no-repeat; }
.dir-card .t { padding: 10px 12px 12px; }
.dir-card .t b { display: block; font-size: 14px; line-height: 1.3; }
.dir-card .t span { font-size: 12px; color: var(--muted); }
.dir-banner { margin-bottom: 18px; display: flex; gap: 16px; align-items: center; }
.dir-banner .cv { width: 140px; flex: none; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--sand) center / cover no-repeat; }
.dir-banner .price { color: var(--gold); font-weight: 600; }
@media (max-width: 560px) { .dir-banner { flex-direction: column; align-items: stretch; } .dir-banner .cv { width: 100%; } }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.work {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow);
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.work .thumb { aspect-ratio: 3/4; background: var(--sand); position: relative; }
.work .thumb img, .work .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work .thumb .badge {
  position: absolute; top: 10px; left: 10px; background: rgba(255, 253, 249, .9); color: var(--ink); padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 500;
}
.work .thumb .noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.work .info { padding: 12px 14px; }
.work .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gallery { display: grid; gap: 10px; }
.gallery .m { position: relative; }
.gallery img, .gallery video { width: 100%; max-height: 70vh; object-fit: contain; background: var(--sand); border-radius: 16px; display: block; }
.gallery .m .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(255, 253, 249, .9); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.files .m { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand); }
.files img, .files video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.files .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(255, 253, 249, .9); color: var(--ink); }
.drop {
  border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer;
  display: block; background: var(--cream); transition: all .2s;
}
.drop:hover { border-color: var(--sky); color: var(--ink); background: var(--sky-soft); }
.drop.dz { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 22px 16px; outline: none; }
.drop.dz b { color: var(--ink); font-weight: 600; }
.drop.dz:focus-visible { box-shadow: 0 0 0 4px var(--sky-soft); border-color: var(--sky); }
.drop.dz.over { border-color: var(--sky); border-style: solid; background: var(--sky-soft); transform: scale(1.01); }
.files .m .size { position: absolute; left: 4px; bottom: 4px; background: rgba(255, 253, 249, .9); color: var(--ink); font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.files .m .tag { position: absolute; left: 4px; top: 4px; background: rgba(47, 55, 87, .7); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.files .m .mtools, .gallery .m .mtools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; align-items: center; }
.mtools .icon-btn { position: static !important; background: rgba(255, 253, 249, .92) !important; color: var(--ink) !important; }
.mtools [data-cover]:hover { color: var(--gold) !important; }
.cover-tag { background: var(--butter); color: var(--ink); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }

/* ---------- Lists / tables ---------- */
.list { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.item:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.item .main { flex: 1; min-width: 0; }
.item .main b { display: block; }
.item .side { text-align: right; flex: none; }
.avatar {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--butter-soft); color: var(--ink); font-weight: 600;
}
.list .item:nth-child(3n+2) .avatar { background: var(--sky-soft); }
.list .item:nth-child(3n+3) .avatar { background: var(--peach-soft); }
.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sand); font-weight: 500; }
.status.yangi { color: #3a7cab; background: var(--sky-soft); }
.status.jarayonda { color: #a7731a; background: var(--butter-soft); }
.status.tayyor { color: var(--ok); background: #e6f1e3; }
.status.topshirildi { color: #b4604a; background: var(--peach-soft); }
.status.bekor { color: var(--muted); text-decoration: line-through; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover td { background: var(--cream); }
td.num, th.num { text-align: right; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.hidden-sum { letter-spacing: .15em; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stats .stat:nth-child(1) { background: var(--sky-soft); border-color: transparent; }
.stats .stat:nth-child(2) { background: var(--butter-soft); border-color: transparent; }
.stats .stat:nth-child(3) { background: var(--peach-soft); border-color: transparent; }
.stats .stat:nth-child(4) { background: #e9f0e5; border-color: transparent; }
.stat .v { font-size: 24px; font-weight: 600; margin-top: 4px; }
.stat .v.pos { color: var(--ok); } .stat .v.neg { color: var(--danger); }

.money-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.money-box .stat { text-align: center; }
@media (max-width: 560px) { .money-box { grid-template-columns: 1fr; } }
.progress { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--butter), var(--peach)); border-radius: 99px; }

.cols { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.cols > * { min-width: 0; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; }

.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpl-chips button {
  border: 0; background: var(--sand); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12px; color: var(--ink-2);
  transition: background .2s;
}
.tpl-chips button:hover { background: var(--butter-soft); }
.exp-form { display: grid; grid-template-columns: 140px 1fr 80px 90px 110px auto; gap: 8px; align-items: end; }
@media (max-width: 760px) { .exp-form { grid-template-columns: 1fr 1fr; } .exp-form .wide { grid-column: 1 / -1; } }

/* Wizard */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps div { flex: 1; height: 6px; border-radius: 9px; background: var(--sand); }
.steps div.on { background: linear-gradient(90deg, var(--sky), var(--peach)); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pick .opt {
  border: 2px solid transparent; border-radius: 18px; cursor: pointer; background: var(--cream); overflow: hidden; transition: all .2s;
}
.pick .opt .cv { aspect-ratio: 4 / 3; background: var(--sand) center / cover no-repeat; }
.pick .opt .t { padding: 10px 12px; }
.pick .opt:hover { box-shadow: var(--shadow-hover); }
.pick .opt.on { border-color: var(--sky); }
.seg { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; background: none; border: 0; padding: 9px; cursor: pointer; color: var(--muted); border-radius: 999px; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.tpl-rows { display: grid; gap: 6px; }
.tpl-rows .r { display: grid; grid-template-columns: 1fr 70px 80px 100px; gap: 6px; }
@media (max-width: 560px) { .tpl-rows .r { grid-template-columns: 1fr 1fr 1fr; } .tpl-rows .r input:first-child { grid-column: 1 / -1; } }

/* Modal */
.modal-back {
  position: fixed; inset: 0; background: rgba(47, 55, 87, .28); backdrop-filter: blur(4px); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal { background: var(--panel); border-radius: 26px; width: 100%; max-width: 560px; padding: 24px; box-shadow: 0 24px 60px rgba(47, 55, 87, .2); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-head h2 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
@media (max-width: 560px) {
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 26px 26px 0 0; max-height: 94vh; overflow-y: auto; }
}

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: var(--cream);
  padding: 11px 20px; border-radius: 999px; z-index: 60; font-weight: 500; max-width: calc(100% - 32px); box-shadow: var(--shadow-hover);
}
.toast.err { background: var(--danger); color: #fff; }

/* ================= Ish stoli (chizish oynasi) ================= */
.sk { position: fixed; inset: 0; z-index: 100; background: #ece6dc; display: flex; flex-direction: column; }
.sk-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.sk-title { width: 200px; padding: 7px 10px; font-weight: 600; }
.sk-group { display: flex; align-items: center; gap: 4px; padding: 3px; background: var(--cream); border-radius: 12px; }
.sk-btn {
  min-width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 17px;
  display: inline-grid; place-items: center; color: var(--ink); padding: 0 6px;
}
.sk-btn:hover { background: var(--sand); }
.sk-btn.on { background: var(--ink); color: var(--cream); }
.sk-btn:disabled { opacity: .35; cursor: default; }
.sk-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sk-sw.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.sk-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.sk-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sk-size { padding: 3px 10px; }
.sk-size input { width: 110px; padding: 0; border: 0; background: none; }
.sk-dot { display: inline-block; border-radius: 50%; background: var(--ink); }
.sk-check { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.sk-check input { width: auto; }
.sk-spacer { flex: 1; }
.sk-make { background: linear-gradient(135deg, #2b4fa8, #ae1c24); }
.sk-close { font-size: 18px; }
.sk-stage { flex: 1; display: grid; place-items: center; overflow: hidden; position: relative; min-height: 0; }
.sk-paper { position: relative; box-shadow: 0 10px 40px rgba(47, 55, 87, .25); border-radius: 6px; overflow: hidden; background: #fff; }
.sk-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-top { touch-action: none; }
.sk-ai {
  position: absolute; top: 60px; right: 12px; bottom: 12px; width: 360px; max-width: calc(100% - 24px); background: var(--panel);
  border-radius: 20px; box-shadow: 0 20px 60px rgba(47, 55, 87, .3); display: flex; flex-direction: column; z-index: 5;
}
.sk-ai-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sk-ai-body { padding: 14px; overflow-y: auto; }
.sk-style { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.sk-style:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.sk-style input { width: auto; margin-top: 3px; }
.sk-style small { display: block; color: var(--muted); }
.sk-ai-status { margin: 10px 0; display: flex; gap: 8px; align-items: center; }
.sk-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--sky-soft); border-top-color: var(--sky); animation: skspin 1s linear infinite; flex: none; }
@keyframes skspin { to { transform: rotate(360deg); } }
.sk-ai-img { width: 100%; border-radius: 14px; display: block; cursor: zoom-in; box-shadow: var(--shadow); }
.sk-ai-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-compare img { width: 100%; border-radius: 12px; display: block; background: var(--sand); }
.sk-compare figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) {
  .sk-bar { gap: 6px; padding: 6px 8px; max-height: 40vh; overflow-y: auto; }
  .sk-title { width: 130px; }
  .sk-ai { top: auto; height: 70vh; left: 8px; right: 8px; width: auto; }
  .sk-compare { grid-template-columns: 1fr; }
}

/* Loyiha sahifasidagi chizmalar ro'yxati */
.sk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sk-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--cream); transition: box-shadow .2s, transform .2s; }
.sk-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.sk-thumbs { position: relative; aspect-ratio: 16 / 10; background: #fff; display: flex; }
.sk-thumbs img { width: 100%; height: 100%; object-fit: contain; flex: 1; min-width: 0; }
.sk-thumbs img.ai { object-fit: cover; border-left: 2px solid var(--panel); }
.sk-thumbs .ai-tag { position: absolute; right: 6px; top: 6px; background: var(--ink); color: var(--cream); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.sk-thumbs .ai-tag.run { background: var(--butter); color: var(--ink); }
.sk-meta { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.sk-meta b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
