@media (min-width: 960px) {
  body.desktop-preview, .desktop-preview .app-frame { background: #f5f6f8; }
  .desktop-preview .app-frame { padding-left: 256px; }
  .desktop-preview .app-frame.shell-collapsed { padding-left: 68px; }
  .desktop-preview .desktop-sidebar { width: 256px; padding: 18px 12px 12px; background: #fcf9ff; border-right: 1px solid #e8ddf0; box-shadow: 2px 0 12px #5b33700b; }
  .desktop-preview .desktop-sidebar.collapsed { width: 68px; padding-inline: 8px; }
  .desktop-preview .desktop-sidebar.collapsed .desktop-brand { margin-inline: 0; justify-content: center; }
  .desktop-preview .desktop-sidebar.collapsed .desktop-nav button { justify-content: center; padding-inline: 0; }
  .desktop-preview .desktop-brand { margin: 2px 8px 24px; color: #352a42; font-size: 17px; }
  .desktop-preview .desktop-brand small { color: #89749f; }
  .desktop-preview .desktop-brand-mark { border-radius: 8px; background: linear-gradient(135deg, #8067d9, #bf82bd); box-shadow: none; }
  .desktop-preview .shell-collapse-toggle { position: absolute; top: 25px; right: -15px; z-index: 32; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #ded0eb; border-radius: 7px; background: #fff; color: #744e98; box-shadow: 0 2px 6px #5b337023; font-size: 23px; line-height: 1; }
  .desktop-preview .shell-collapse-toggle:hover { background: #f3eafa; border-color: #bda2d2; }
  .desktop-preview .desktop-nav { gap: 3px; overflow-y: auto; scrollbar-width: thin; }
  .desktop-preview .desktop-nav > button { min-height: 42px; }
  .desktop-preview .desktop-nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 6px; color: #665777; font-size: 13px; text-align: left; transition: background-color .15s, color .15s; }
  .desktop-preview .desktop-nav button > span:not(.desktop-nav-chevron) { width: auto; flex: 1; font-size: inherit; line-height: 1.3; text-align: left; white-space: nowrap; }
  .desktop-preview .desktop-nav button:hover { color: #6a3f91; background: #f4eefa; }
  .desktop-preview .desktop-nav button:focus-visible, .desktop-preview .desktop-header button:focus-visible, .desktop-preview .shell-collapse-toggle:focus-visible { outline: 2px solid #8b63b1; outline-offset: 2px; }
  .desktop-preview .desktop-nav button.active { color: #64358c; background: #efe4f8; font-weight: 700; box-shadow: inset 3px 0 #a773c3; }
  .desktop-preview .desktop-subnav { margin: 1px 0 6px 28px; padding: 0 0 0 9px; border-left: 1px solid #e8dced; }
  .desktop-preview .desktop-subnav button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .desktop-preview .desktop-nav-chevron { margin-left: auto; font-size: 13px; }
  .desktop-preview .desktop-header { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 25; height: 62px; padding: 0 26px; background: #fff; border-bottom: 1px solid #e4e7ec; color: #243341; }
  .desktop-preview .desktop-header-actions { display: flex; align-items: center; gap: 8px; }
  .desktop-preview .desktop-header-actions button { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; color: #485b69; background: transparent; font-size: 12px; }
  .desktop-preview .desktop-header-actions button:hover { background: #eef4f7; }
  .desktop-preview .desktop-header-actions .nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #ddeaf1; display: grid; place-items: center; color: #285572; font-weight: 700; }
  .desktop-preview .desktop-header-actions .nav-points { color: #697988; font-size: 11px; }
  .desktop-preview .nav-unread { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #c73943; }
  .desktop-preview .desktop-notice-panel { position: absolute; top: 55px; right: 18px; width: min(390px, calc(100vw - 36px)); max-height: min(70vh, 590px); overflow: auto; padding: 16px; background: #fff; border: 1px solid #dfe5eb; border-radius: 8px; box-shadow: 0 12px 36px #203c5424; }
  .desktop-preview .desktop-notice-panel h2 { margin: 0 0 12px; font-size: 16px; }
  .desktop-preview .desktop-notice-panel article { padding: 12px 0; border-top: 1px solid #edf0f2; }
  .desktop-preview .desktop-notice-panel article strong { display: block; font-size: 13px; }
  .desktop-preview .desktop-notice-panel article p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #546474; font-size: 12px; line-height: 1.6; }
  .desktop-preview .desktop-notice-panel article small { color: #8995a1; }
  .desktop-preview .desktop-notice-panel input, .desktop-preview .desktop-notice-panel textarea { width: 100%; margin: 5px 0; padding: 9px 10px; background: #f5f7f8; border: 1px solid #dfe5eb; border-radius: 6px; color: #253541; }
  .desktop-preview .desktop-notice-panel textarea { min-height: 84px; resize: vertical; }
  .desktop-preview .desktop-notice-panel .notice-actions { display: flex; justify-content: flex-end; gap: 8px; }
  .desktop-preview .desktop-notice-panel .notice-actions button { color: #24698e; }
  .desktop-preview .desktop-admin-panel { width: 100%; height: calc(100dvh - 62px); border: 0; background: #fff; }
}
@media (max-width: 959px) {
  .desktop-header { display: none; }
  .shell-mobile-toggle { position: fixed; top: 10px; left: 10px; z-index: 80; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ded0eb; border-radius: 6px; background: #fcf9ff; color: #744e98; box-shadow: 0 1px 4px #5b33701f; }
  .shell-mobile-scrim { position: fixed; inset: 0; z-index: 88; background: #101d2999; }
  .desktop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 89; display: flex; flex-direction: column; width: min(256px, 85vw); padding: 18px 12px; background: #fcf9ff; border-right: 1px solid #e8ddf0; color: #352a42; }
  .desktop-brand { display: flex; align-items: center; gap: 10px; margin: 2px 8px 24px; color: #352a42; font-size: 16px; }
  .desktop-brand-mark { border-radius: 8px; background: linear-gradient(135deg, #8067d9, #bf82bd); box-shadow: none; }
  .shell-collapse-toggle { margin-left: auto; padding: 3px 7px; border: 0; background: transparent; font-size: 24px; color: #744e98; }
  .desktop-nav { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; gap: 3px; }
  .desktop-nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #665777; text-align: left; font-size: 13px; }
  .desktop-nav button > span:not(.desktop-nav-chevron) { width: auto; flex: 1; font-size: inherit; line-height: 1.3; text-align: left; white-space: nowrap; }
  .desktop-nav button.active { background: #efe4f8; color: #64358c; font-weight: 700; }
  .desktop-nav button:focus-visible, .shell-mobile-toggle:focus-visible, .shell-collapse-toggle:focus-visible { outline: 2px solid #8b63b1; outline-offset: 2px; }
  .desktop-nav-chevron { margin-left: auto; }
  .desktop-subnav { margin-left: 28px; padding-left: 9px; border-left: 1px solid #e8dced; }
  .desktop-subnav button { min-height: 34px; font-size: 12px; }
}
body.shell-dark.desktop-preview, body.shell-dark.desktop-preview .app-frame { background: #171d23; color: #d9e2ea; }
.shell-dark.desktop-preview .desktop-sidebar, .shell-dark.desktop-preview .desktop-header, .shell-dark.desktop-preview .desktop-notice-panel { background: #202a32; border-color: #34424d; color: #e5edf3; }
.shell-dark.desktop-preview .desktop-brand { color: #e5edf3; }
.shell-dark.desktop-preview .desktop-brand small, .shell-dark.desktop-preview .nav-points { color: #afc0ca; }
.shell-dark.desktop-preview .shell-collapse-toggle { color: #e4c8ef; background: #30283b; border-color: #695378; }
.shell-dark.desktop-preview .shell-collapse-toggle:hover { background: #463650; }
.shell-dark.desktop-preview .desktop-sidebar .desktop-nav button { color: #cad5dc !important; transition: none; }
.shell-dark.desktop-preview .desktop-header-actions button { color: #cad5dc; }
.shell-dark.desktop-preview .desktop-nav button:hover, .shell-dark.desktop-preview .desktop-header-actions button:hover { background: #2b3c48; }
.shell-dark.desktop-preview .desktop-sidebar .desktop-nav button.active { color: #eed6f5 !important; background: #48374f !important; box-shadow: inset 3px 0 #bf8ed1; }
.shell-dark.desktop-preview .desktop-notice-panel input, .shell-dark.desktop-preview .desktop-notice-panel textarea { color: #e1e9ef; background-color: #2b3944; border-color: #536877; }
.shell-dark.desktop-preview .desktop-notice-panel article p { color: #c0cbd3; }
@media (prefers-reduced-motion: reduce) { .desktop-preview .desktop-nav button { transition: none; } }
