/* mp.shifir.cn — losfer API-list 风格 + UKIJ Ekran */
:root {
  --brand: #2f9e6e; --brand-weak: #e7f5ee; --bg: #f5f6f8; --surface: #ffffff;
  --text: #1f2733; --muted: #8a93a3; --border: #e8ebf0;
  --free: #16a34a; --free-bg: #e9f9ef; --pay: #f59e0b; --pay-bg: #fef3e2;
  --danger: #e5484d; --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05);
}
[data-theme="dark"] {
  --brand: #34b57f; --brand-weak: #1d3329; --bg: #10151b; --surface: #1a2029;
  --text: #e6ebf1; --muted: #8b95a3; --border: #27303c;
  --free: #4ade80; --free-bg: #14301f; --pay: #fbbf24; --pay-bg: #332711;
  --danger: #f0666a; --shadow: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'UKIJ Ekran', 'Segoe UI', 'Microsoft YaHei', Tahoma, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, select, textarea { font-family: inherit; }

/* ===== 顶部导航 ===== */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar__inner { max-width: 1440px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.brand__logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.topnav { display: flex; gap: 4px; margin: 0 auto; }
.topnav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.topnav a:hover { color: var(--text); background: var(--bg); }
.topnav a.active { background: var(--brand); color: #fff; }
.topbar__actions { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; }
.user-chip { font-weight: 700; font-size: 13px; padding: 0 4px; white-space: nowrap; }
.lang-tag { font-size: 12px; font-weight: 700; margin-inline-start: 4px; }

/* 语言开关（纯文字 汉/ئۇ） */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border);
  border-radius: 999px; background: var(--bg); padding: 3px; cursor: pointer; overflow: hidden;
}
.lang-toggle span {
  min-width: 30px; padding: 4px 9px; text-align: center; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: var(--muted);
}
.lang-toggle span.active { background: var(--brand); color: #fff; }

/* 下拉选择美化 */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600;
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}
[dir="rtl"] select.input { background-position: left 11px center; padding-inline-end: 13px; padding-inline-start: 34px; }
select.input option { font-weight: 600; padding: 8px; }

/* 表单验证错误态 */
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229,72,77,.14); }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .ico-moon, html:not([data-theme="dark"]) .ico-sun { display: none; }
[data-theme="dark"] .ico-sun { display: block; }

/* ===== 布局 ===== */
.layout { max-width: 1440px; margin: 0 auto; display: flex; gap: 22px; padding: 20px 18px 40px; align-items: flex-start; }
.sidebar {
  width: 230px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; position: sticky; top: 72px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 92px); overflow-y: auto;
}
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 5px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600;
}
.side-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-item:hover { background: var(--bg); color: var(--text); }
.side-item.active { background: var(--text); color: var(--surface); }
[dir="rtl"] .side-item { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .side-group { text-align: right; }
[dir="rtl"] .topnav { margin: 0 auto; }
.content { flex: 1; min-width: 0; }

/* ===== 通用卡片 ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-title { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* ===== 仪表盘统计 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { text-align: center; padding: 18px 10px; }
.stat-num { font-size: 26px; font-weight: 900; color: var(--brand); }
.stat-label { color: var(--muted); margin-top: 3px; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 柱状图 */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bar { width: 58%; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 70%, transparent)); border-radius: 5px 5px 0 0; min-height: 3px; }
.bar-val, .bar-date { font-size: 11px; color: var(--muted); }
.recent-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: 0; }
.recent-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-date { color: var(--muted); font-size: 12px; }

/* ===== 标签（免费/付费 风格）===== */
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2.5px 9px; border-radius: 999px; background: var(--brand-weak); color: var(--brand); white-space: nowrap; }
.tag.t-free, .tag.t-ok { background: var(--free-bg); color: var(--free); }
.tag.t-pay { background: var(--pay-bg); color: var(--pay); }
.tag.t-off { background: var(--bg); color: var(--muted); }
.tag.t-admin, .tag.t-danger { background: #fdecec; color: var(--danger); }
[data-theme="dark"] .tag.t-admin, [data-theme="dark"] .tag.t-danger { background: #3a1b1d; }
.tag.t-video { background: #e9f0fd; color: #3b78d9; }
.tag.t-audio { background: #fdf3e8; color: #d98c3b; }
.tag.t-link { background: #f1e8fd; color: #8452d9; }
[data-theme="dark"] .tag.t-video { background: #17273e; }
[data-theme="dark"] .tag.t-audio { background: #332711; }
[data-theme="dark"] .tag.t-link { background: #251b38; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(.94); color: #fff; }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { padding: 4.5px 11px; font-size: 12px; }
.btn.block { width: 100%; margin-bottom: 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 输入 ===== */
.input { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 11px; padding: 9px 13px; font-size: 13px; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.input.grow { flex: 1; }
.input.code { width: 100%; font-family: ui-monospace, Consolas, monospace; direction: ltr; text-align: left; }
textarea.input { resize: vertical; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.field select.input, .field input.input { width: 100%; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ===== 页头 + 搜索/筛选 ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title { font-size: 21px; font-weight: 900; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
[dir="rtl"] .chip, [dir="rtl"] .btn, [dir="rtl"] .field-row { }

/* ===== 媒体卡片（losfer API 卡风格，4 列）===== */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 4px; }
.media-card { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); transition: .18s; }
.media-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,24,40,.09); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.media-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.media-card__icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--brand-weak); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.media-card__icon svg { width: 20px; height: 20px; }
.media-card__titlewrap { flex: 1; min-width: 0; }
.media-name { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card__badge { flex-shrink: 0; }
.thumb { margin: 4px 0 10px; height: 130px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.thumb img, .thumb video { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb audio { width: 92%; }
.media-card__desc { color: var(--muted); font-size: 12.5px; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-meta { color: var(--muted); font-size: 11.5px; margin-top: 3px; word-break: break-all; }
.media-actions { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; align-items: center; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); white-space: nowrap; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; }
.table tbody tr:hover { background: var(--bg); }
.ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; background: rgba(9,14,20,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal-box { background: var(--surface); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 660px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
/* 确认框 */
.confirm-box { max-width: 340px; text-align: center; padding: 26px 22px 20px; }
.confirm-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #fdecec; color: var(--danger); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .confirm-icon { background: #3a1b1d; }
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-msg { font-weight: 700; font-size: 15px; margin-bottom: 20px; word-break: break-word; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; padding: 10px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; font-weight: 800; }
#pvBody video, #pvBody img { max-width: 100%; border-radius: 10px; }
#pvBody audio { width: 100%; }

/* ===== 分页 ===== */
.pager { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; min-width: 34px; height: 34px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font-weight: 600; }
.pager span.current, .pager a.active { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ===== 登录页 ===== */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, var(--brand-weak), transparent 60%), radial-gradient(700px 500px at -10% 110%, var(--brand-weak), transparent 55%), var(--bg); }
.auth-deco { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid color-mix(in srgb, var(--brand) 10%, transparent); top: -160px; inset-inline-start: -140px; pointer-events: none; }
.auth-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px 30px; width: 100%; max-width: 410px; box-shadow: 0 24px 70px rgba(16,24,40,.14); }
.auth-logo-c { text-align: center; margin-bottom: 20px; }
.auth-logo-c .brand__logo { display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.auth-site { font-size: 18px; font-weight: 900; margin-top: 12px; }
.auth-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.auth-card .tabs { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.auth-card .tab { flex: 1; text-align: center; padding: 9px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.auth-card .tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent); }
.auth-card .field label { margin-bottom: 7px; }
.in-wrap { position: relative; }
.in-wrap svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 13px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.in-wrap input { width: 100%; background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; padding-inline-start: 40px; font-size: 14px; color: var(--text); outline: none; }
[dir="rtl"] .in-wrap input { padding-inline-start: 14px; padding-inline-end: 40px; }
.in-wrap input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3.5px var(--brand-weak); }
.in-wrap input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3.5px rgba(229,72,77,.14); }
.auth-card .btn.block { padding: 12px; font-size: 14.5px; border-radius: 12px; }
.auth-card .btn.primary.block { background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 78%, #0e5c3e)); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 35%, transparent); }
.wx-btn { background: #f2f8f5; border-color: transparent; color: #1c7a53; font-weight: 800; }
[data-theme="dark"] .wx-btn { background: #17301f; }
.wx-btn:hover { border-color: #1c7a53; color: #1c7a53; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11.5px; margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 16px; }
.auth-foot a { color: var(--brand); font-weight: 700; }

/* ===== toast / 上传 ===== */
.toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%) translateY(-16px); background: var(--text); color: var(--surface); padding: 11px 22px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 300; pointer-events: none; max-width: 80vw; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.progress-wrap { margin: 10px 0; }
.progress { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { background: var(--brand); height: 100%; width: 0; transition: width .2s; }
.up-status { font-size: 12px; color: var(--muted); margin-top: 4px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { direction: ltr; }

#btnSidebar { display: none; }
/* ===== 公开门户（登录前）===== */
.p-topbar { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--border); }
.p-wrap { max-width: 1440px; margin: 0 auto; padding: 20px 18px 50px; }
.p-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,24,40,.12); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.p-card__cover { position: relative; aspect-ratio: 4/3; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.p-card__ph { color: var(--muted); opacity: .6; }
.p-card__ph svg { width: 40px; height: 40px; }
.p-card__badge { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 11px; font-weight: 800; padding: 2.5px 9px; border-radius: 999px; background: var(--free-bg); color: var(--free); }
.p-card__badge.t-vip { background: linear-gradient(120deg, #fde68a, #f59e0b); color: #4a2e02; }
.p-card__badge.t-pay { background: var(--pay-bg); color: var(--pay); }
.p-card__body { padding: 10px 12px 12px; }
.p-card__title { font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
.p-cat { font-size: 11px; color: var(--brand); background: var(--brand-weak); padding: 1.5px 8px; border-radius: 999px; font-weight: 700; }
.p-tag { font-size: 11px; font-weight: 700; }
/* 标签云管理 */
.tag-cloud { display: flex; gap: 10px; flex-wrap: wrap; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1.6px solid; border-radius: 999px; font-weight: 800; cursor: pointer; font-size: 13px; background: var(--surface); }
.tagchip-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0; }
.tagchip-del:hover { color: var(--danger); }
.tagpick-item { display: inline-flex; margin: 0 8px 8px 0; cursor: pointer; }
.tagpick-item input { display: none; }
.tagpick-item span { padding: 5px 13px; border: 1.6px solid; border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.tagpick-item input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.t-vip { background: linear-gradient(120deg, #fde68a, #f59e0b); color: #4a2e02; }
/* 内容编辑两列 */
.field.grow { flex: 1; min-width: 140px; }
.field-row .field.grow { margin-bottom: 14px; }
/* ===== 菜单手机模拟器 ===== */
.menu-work { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.phone { position: sticky; top: 76px; }
.phone__screen { background: #ececec; border-radius: 26px; border: 8px solid #23282e; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.phone__head { background: #2f9e6e; color: #fff; text-align: center; padding: 26px 12px 14px; font-weight: 700; }
.phone__body { height: 330px; background: #f7f7f7; padding: 8px; }
.phone__subs { display: flex; flex-direction: column; gap: 5px; }
.sim-subwrap { background: #fafafa; border: 1px solid #e3e3e3; border-radius: 8px; padding: 5px; margin-bottom: 5px; }
.sim-sub { text-align: center; padding: 8px; font-size: 12.5px; color: #444; border-radius: 6px; cursor: pointer; }
.sim-sub:hover { background: #f0f0f0; }
.sim-add { color: #999; }
.phone__bar { display: flex; border-top: 1px solid #ddd; background: #fafafa; }
.sim-btn { flex: 1; text-align: center; padding: 13px 4px; font-size: 12.5px; font-weight: 600; color: #333; cursor: pointer; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-btn:hover { background: #f0f0f0; }
.sim-btn + .sim-btn { border-inline-start: 1px solid #eee; }
.sim-btn-add { color: #b5b5b5; }
.sim-plus { display: none; }
/* ===== 响应式 ===== */
@media (max-width: 1180px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .topnav { display: none; }
  #btnSidebar { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0; z-index: 80; border-radius: 0;
    transform: translateX(-105%); transition: transform .25s; max-height: none; height: 100vh;
  }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  .sidebar.open { transform: translateX(0) !important; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-work { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .thumb { height: 100px; }
  .stat-num { font-size: 20px; }
  .brand__name { display: none; }
}

/* guide steps */
.guide{margin:0;padding:0 0 0 22px;display:grid;gap:9px;font-size:13.5px;line-height:1.85;color:var(--text)}
[dir="rtl"] .guide{padding:0 22px 0 0}
.guide code{background:rgba(47,158,110,.13);color:#178a58;border:1px solid rgba(47,158,110,.25);padding:2px 9px;border-radius:7px;font-family:inherit;font-size:12.5px;direction:ltr;unicode-bidi:embed;word-break:break-all;user-select:all}
[data-theme="dark"] .guide code{background:rgba(95,214,163,.14);color:#5fd6a3;border-color:rgba(95,214,163,.3)}

/* clock chip */
.clock-chip{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:11px;background:var(--surface);border:1px solid var(--border);font-size:13.5px;font-weight:600;color:var(--text,#2a322d);white-space:nowrap;line-height:1}
.clock-chip .clk-time{color:var(--brand);font-variant-numeric:tabular-nums;letter-spacing:.5px;direction:ltr;unicode-bidi:embed;font-weight:700}

/* sidebar accordion */
