﻿.ypm-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.ypm-sidebar {
  border-left: 1px solid var(--ypm-line);
  background: linear-gradient(180deg, #f8fcff, #eef5fb);
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.ypm-main { padding: 16px; min-width: 0; }
.ypm-topbar {
  background: #fff;
  border: 1px solid var(--ypm-line);
  border-radius: 16px;
  box-shadow: var(--ypm-shadow);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ypm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }
.ypm-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ypm-primary), var(--ypm-primary-2));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.ypm-page-head {
  background: #fff;
  border: 1px solid var(--ypm-line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.ypm-page-title { margin: 0; font-size: 24px; font-weight: 800; }
.ypm-page-desc { margin: 4px 0 0; color: var(--ypm-muted); font-size: 14px; }
.ypm-breadcrumb { font-size: 12px; color: var(--ypm-muted); margin-bottom: 6px; }
.ypm-content { display: grid; gap: 12px; }
.ypm-mobile-toggle { display: none; }
@media (max-width: 1024px) {
  .ypm-shell { grid-template-columns: 1fr; }
  .ypm-sidebar {
    position: fixed; right: 0; top: 0; width: min(86vw, 320px); z-index: 1200;
    transform: translateX(102%); transition: transform .2s ease;
    border-right: 1px solid var(--ypm-line);
  }
  body.ypm-nav-open .ypm-sidebar { transform: translateX(0); }
  .ypm-mobile-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .ypm-main { padding: 12px; }
  .ypm-topbar,
  .ypm-page-head { padding: 12px; }
  .ypm-brand { flex-basis: 100%; align-items: flex-start; }
  .ypm-page-title { font-size: 22px; line-height: 1.2; }
  .ypm-page-desc { font-size: 13px; line-height: 1.7; }
}
@media (max-width: 560px) {
  .ypm-topbar { gap: 10px; border-radius: 14px; }
  .ypm-brand { display: grid; grid-template-columns: auto 1fr; align-items: start; }
  .ypm-logo { width: 40px; height: 40px; border-radius: 10px; }
}
