/* 小明像 — Minimalist UI
   极简黑白 · 暖调单色 · 编辑风格排版
   规范：无渐变、无重阴影、边框一律 1px #EAEAEA、圆角 4-8px
*/

:root {
  /* 画布与表面 */
  --canvas: #FBFBFA;
  --surface: #FFFFFF;
  --surface-2: #F7F6F3;

  /* 文本：不用纯黑 */
  --ink: #111111;
  --ink-2: #2F3437;
  --ink-3: #787774;

  /* 结构线 */
  --line: #EAEAEA;
  --line-2: rgba(0, 0, 0, 0.06);

  /* 柔和强调色（只用于标签/语义） */
  --pale-red: #FDEBEC;      --pale-red-ink: #9F2F2D;
  --pale-blue: #E1F3FE;     --pale-blue-ink: #1F6C9F;
  --pale-green: #EDF3EC;    --pale-green-ink: #346538;
  --pale-yellow: #FBF3DB;   --pale-yellow-ink: #956400;

  /* 字体 */
  --sans: 'SF Pro Display', 'Geist Sans', 'Helvetica Neue', 'PingFang SC',
          'Microsoft YaHei', sans-serif;
  --serif: 'Newsreader', 'Playfair Display', 'Instrument Serif',
           'Songti SC', Georgia, serif;
  --mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', ui-monospace, monospace;

  --radius: 8px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- 排版 ---------- */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }

.h-hero {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.h-section {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.h-card { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 62ch;
}

.meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* 小标签：大写宽字距 */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--sans);
}
.tag--blue   { background: var(--pale-blue);   color: var(--pale-blue-ink); }
.tag--green  { background: var(--pale-green);  color: var(--pale-green-ink); }
.tag--yellow { background: var(--pale-yellow); color: var(--pale-yellow-ink); }
.tag--red    { background: var(--pale-red);    color: var(--pale-red-ink); }
.tag--plain  { background: var(--surface-2);   color: var(--ink-3); }

/* ---------- 布局 ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}

/* ---------- 布局骨架：左固定侧栏 + 右内容 ---------- */
.layout { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sb {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
  width: 236px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transition: width .22s cubic-bezier(0.16, 1, 0.3, 1);
}
html.sb-collapsed .sb { width: 60px; }

.sb__head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sb__brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.sb__mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
}
.sb__name {
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
.sb__toggle {
  flex: none;
  width: 26px; height: 26px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
  transition: background .16s, color .16s;
}
.sb__toggle:hover { background: var(--surface-2); color: var(--ink); }
html.sb-collapsed .sb__head { justify-content: center; padding-inline: 0; }
html.sb-collapsed .sb__toggle { display: none; }
html.sb-collapsed .sb__brand { flex: none; }

.sb__nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sb__group { margin-top: 14px; }
.sb__group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3);
}
.sb__arrow {
  font-size: 15px; line-height: 1; transition: transform .2s;
  transform: rotate(0deg); opacity: .6;
}
.sb__arrow.is-open { transform: rotate(90deg); }
html.sb-collapsed .sb__group-head { display: none; }
html.sb-collapsed .sb__group { margin-top: 6px; }

.sb__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-3);
  border: 0; background: transparent; width: 100%;
  font-family: var(--sans); text-align: left; cursor: pointer;
  transition: background .16s, color .16s;
  white-space: nowrap;
}
.sb__item:hover { background: var(--surface-2); color: var(--ink); }
.sb__item.is-active { background: var(--ink); color: #fff; }
.sb__item.is-active .sb__ico { opacity: 1; }
.sb__item--sub { font-size: 13.5px; padding-left: 10px; }
.sb__ico { display: grid; place-items: center; opacity: .78; flex: none; }
.sb__label { overflow: hidden; text-overflow: ellipsis; }
html.sb-collapsed .sb__item { justify-content: center; padding: 9px 0; }
html.sb-collapsed .sb__label { display: none; }

.sb__children { padding-left: 0; }

.sb__foot { flex: none; padding: 12px 10px 14px; border-top: 1px solid var(--line); }
.sb__quota {
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.sb__quota-val { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
html.sb-collapsed .sb__quota { display: none; }
.sb__item--btn { margin: 0; }
.sb__tip { padding: 4px 10px; }
html.sb-collapsed .sb__tip { display: none; }

/* ---------- 登录弹窗 ---------- */
.lm {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,17,17,.42);
  display: grid; place-items: center; padding: 20px;
}
.lm__box {
  width: 100%; max-width: 340px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
}
.lm__title { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.lm__sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 20px; }
.lm__err { font-size: 12.5px; color: var(--pale-red-ink); margin-bottom: 12px; }
.lm__ok { font-size: 12.5px; color: var(--pale-green-ink); margin-bottom: 12px; }
.lm__hint { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 16px; }

/* 移动端抽屉 + 遮罩 */
.sb-mask {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(17, 17, 17, .32);
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.sb-mask.is-on { opacity: 1; pointer-events: auto; }

/* ---------- 内容区 ---------- */
.main {
  flex: 1; min-width: 0;
  margin-left: 236px;
  display: flex; flex-direction: column;
  transition: margin-left .22s cubic-bezier(0.16, 1, 0.3, 1);
}
html.sb-collapsed .main { margin-left: 60px; }

/* ---------- 顶部公告条 ---------- */
.bb {
  background: #FBF3DB; color: #956400;
  border-bottom: 1px solid #F0E0B8;
}
.bb__inner {
  max-width: 1100px; margin: 0 auto; padding: 8px 24px;
  font-size: 12.5px; text-align: center;
}
.bb__txt { color: inherit; }
/* 侧栏布局下公告条不需要 max-width，粘在 main 顶部。但在无侧栏语境兼容 */
.layout .main .bb__inner { max-width: none; }

/* ---------- 内容区顶栏（细条） ---------- */
.tb {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  background: rgba(251, 251, 250, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.tb__burger {
  display: none;
  width: 34px; height: 34px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); place-items: center; cursor: pointer;
}
.tb__txt { flex: 1; min-width: 0; }
.tb__title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tb__sub { font-size: 12.5px; color: var(--ink-3); }
.tb__right { flex: none; display: flex; align-items: center; gap: 10px; }

/* 顶栏右侧：算力 + 用户 */
.tb__quota {
  font-size: 12.5px; color: var(--ink-3);
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.tb__user {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 9999px;
  border: 1px solid var(--line); cursor: pointer;
  transition: background .16s;
  user-select: none;
}
.tb__user:hover { background: var(--surface-2); }
.tb__avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600;
}
.tb__uname { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.tb__caret { font-size: 15px; color: var(--ink-3); line-height: 1; transform: rotate(90deg); }

/* 下拉菜单 */
.tb__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 100;
  min-width: 200px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
}
.tb__menu-head { padding: 9px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.tb__menu-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tb__menu-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 11px; border: 0; background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-2);
  cursor: pointer; transition: background .14s, color .14s;
}
.tb__menu-item:hover { background: var(--surface-2); color: var(--ink); }
.tb__menu-item--out { color: var(--pale-red-ink); border-top: 1px solid var(--line);
  margin-top: 5px; padding-top: 10px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.tb__menu-item--out:hover { background: var(--pale-red); }

/* 通知铃铛 */
.tb__bell {
  position: relative; width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-2); transition: background .16s, color .16s;
}
.tb__bell:hover { background: var(--surface-2); color: var(--ink); }
.tb__dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #D9534F; border: 1.5px solid var(--canvas);
}

/* 通知面板 */
.nt {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 100;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
}
.nt__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.nt__list { max-height: 380px; overflow-y: auto; }
.nt__item {
  display: flex; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.nt__item:last-child { border-bottom: 0; }
.nt__item.is-new { background: #FCFBF7; }
.nt__ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-3);
}
.nt__ico--income { background: var(--pale-green); color: var(--pale-green-ink); }
.nt__ico--task { background: var(--pale-blue); color: var(--pale-blue-ink); }
.nt__body { min-width: 0; }
.nt__title { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.nt__text { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.nt__empty { padding: 32px 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* 点外部关闭 */
.tb__scrim { position: fixed; inset: 0; z-index: 90; }

@media (max-width: 640px) {
  .tb__uname, .tb__quota { display: none; }
  .tb__user { padding: 4px; border: 0; }
}

/* 兼容旧顶栏类名（避免残留样式失效） */
.nav { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .12s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.btn--primary:hover { background: #333; border-color: #333; }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card--pad-lg { padding: 32px; }
.card--flat { box-shadow: none; }

/* bento 非对称网格 */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.bento > * { grid-column: span 12; }
@media (min-width: 760px) {
  .bento > .b-4  { grid-column: span 4; }
  .bento > .b-5  { grid-column: span 5; }
  .bento > .b-6  { grid-column: span 6; }
  .bento > .b-7  { grid-column: span 7; }
  .bento > .b-8  { grid-column: span 8; }
}

.grid-auto {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field__label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 550; color: var(--ink);
}
.field__hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.input, .textarea, .select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  transition: border-color .18s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ink);
}
.textarea { resize: vertical; min-height: 108px; font-size: 14px; }
.input::placeholder, .textarea::placeholder { color: #B4B2AE; }

/* 分段选择 */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg__item {
  padding: 7px 14px; font-size: 13.5px; color: var(--ink-3);
  background: var(--surface); cursor: pointer; border: 0;
  font-family: var(--sans); transition: background .16s, color .16s;
  border-right: 1px solid var(--line);
}
.seg__item:last-child { border-right: 0; }
.seg__item:hover { background: var(--surface-2); color: var(--ink); }
.seg__item.is-active { background: var(--ink); color: #fff; }

.seg-row { display: flex; flex-wrap: wrap; gap: 3px; }
.seg--chips { border: 0; gap: 6px; display: flex; flex-wrap: wrap; }
.seg--chips .seg__item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.seg--chips .seg__item.is-active { border-color: var(--ink); }

/* ---------- 上传区 ---------- */
.drop {
  border: 1px dashed #D6D3CD;
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.drop:hover { border-color: var(--ink-3); background: #F3F2EF; }
.drop__title { font-size: 14px; color: var(--ink); font-weight: 550; margin-bottom: 4px; }
.drop__hint { font-size: 12.5px; color: var(--ink-3); }
.drop__thumb { max-height: 160px; border-radius: var(--radius-sm); margin-top: 14px; }
.drop__box { position: relative; display: inline-block; }
.drop__x {
  position: absolute; top: 18px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #111; color: #fff; border: 0; cursor: pointer;
  font-size: 13px; line-height: 1; display: grid; place-items: center;
  opacity: .85; transition: opacity .15s;
}
.drop__x:hover { opacity: 1; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 11px 14px;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }

/* ---------- 空状态 ---------- */
.empty {
  padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-3);
}
.empty__title { font-size: 15px; color: var(--ink); font-weight: 550; margin-bottom: 6px; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 13px; color: var(--ink-3);
}
.foot__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot__links { display: flex; gap: 20px; }
.foot__links a:hover { color: var(--ink); }

/* ---------- 卡片网格（模板/作品） ---------- */
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
        transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.tile__media {
  aspect-ratio: 9 / 16; background: var(--surface-2);
  display: grid; place-items: center; color: #C8C4BC;
  font-family: var(--mono); font-size: 11px;
}
.tile__body { padding: 14px 16px 16px; }
.tile__title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tile__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 提示词市场 ---------- */
.pm-filters { margin-bottom: 20px; }
.pm-filters__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pm-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.pm-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.pm-card:hover { border-color: #D5D3CE; transform: translateY(-2px); }
.pm-card__media {
  position: relative; aspect-ratio: 9 / 12; background: #F7F6F3;
  display: grid; place-items: center; overflow: hidden;
}
.pm-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-card__ph {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-3); font-size: 12px;
}
.pm-card__tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(17,17,17,.72); color: #fff;
  font-size: 10.5px; padding: 2px 7px; border-radius: 9999px;
}
.pm-card__tag--hot { left: auto; right: 8px; background: var(--pale-red); color: var(--pale-red-ink); }
.pm-card__body { padding: 12px 14px 14px; }
.pm-card__title {
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 详情里的提示词原文 */
.pm-pre {
  margin: 0; padding: 14px; max-height: 300px; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- 滚动进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1),
              transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  /* 侧栏变抽屉 */
  .sb {
    width: 248px !important;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  .sb.is-open { transform: none; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
  html.sb-collapsed .sb { width: 248px !important; }
  html.sb-collapsed .sb__label { display: block; }
  html.sb-collapsed .sb__item { justify-content: flex-start; padding: 8px 10px; }
  html.sb-collapsed .sb__group-head { display: flex; }
  html.sb-collapsed .sb__toggle { display: grid; }
  .main { margin-left: 0 !important; }
  .tb__burger { display: grid; }
  .tb { padding: 12px 18px; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .wrap { padding: 0 18px; }
  .tb { padding: 11px 16px; gap: 10px; }
  .tb__title { font-size: 14px; }
  .tb__sub { display: none; }
}
