body.plw-open { overflow: hidden; }
.plw-overlay { position: fixed; inset: 0; z-index: 16000; display: grid; place-items: center; padding: 24px; background: rgba(0, 5, 14, .82); backdrop-filter: blur(12px); }
.plw-modal { position: relative; width: min(1040px, calc(100vw - 48px)); max-width: 100%; max-height: min(860px, 88vh); overflow: hidden; border: 1px solid rgba(103, 151, 220, .25); border-radius: 22px; color: #edf4ff; background: radial-gradient(circle at 75% 5%, rgba(21, 103, 255, .12), transparent 35%), linear-gradient(145deg, #071426, #030b16); box-shadow: 0 38px 130px rgba(0, 0, 0, .72); }
.plw-modal *, .plw-modal *::before, .plw-modal *::after { box-sizing: border-box; }
.plw-modal button, .plw-modal input, .plw-modal textarea, .plw-modal select { font: inherit; }
.plw-modal svg { width: 18px; height: 18px; stroke: currentColor; }
.plw-close { position: absolute; z-index: 4; top: 20px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #aebcd0; background: rgba(11, 25, 42, .75); cursor: pointer; }
.plw-form { height: min(860px, 88vh); max-height: min(860px, 88vh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.plw-header { min-width: 0; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 68px 16px 20px; border-bottom: 1px solid rgba(148, 163, 184, .14); background: rgba(4, 13, 25, .58); }
.plw-heading { min-width: 0; display: flex; align-items: center; gap: 14px; }
.plw-heading > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 14px; color: white; background: linear-gradient(145deg, #1546bd, #08266d); box-shadow: 0 12px 30px rgba(16, 84, 221, .27); }
.plw-heading h2, .plw-heading p { margin: 0; }
.plw-heading h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.plw-heading p { margin-top: 4px; color: #8f9db1; font-size: .77rem; }
.plw-status { display: flex; align-items: center; gap: 10px; }
.plw-status > strong { white-space: nowrap; font-size: .7rem; }
.plw-status > div { display: grid; grid-template-columns: 1fr 1fr; min-width: 220px; padding: 3px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 12px; background: #06101e; }
.plw-status button { min-height: 36px; border: 0; border-radius: 9px; color: #94a3b8; background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.plw-status button.active { color: white; background: linear-gradient(135deg, #3347e9, #087fe9); }
.plw-status button i { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #4ada8d; }
.plw-layout { min-width: 0; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; }
.plw-sidebar { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 14px 12px; border-right: 1px solid rgba(148, 163, 184, .14); background: rgba(3, 12, 24, .52); overflow: auto; }
.plw-sidebar nav { display: grid; gap: 6px; }
.plw-sidebar nav button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 30px 20px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid transparent; border-radius: 12px; color: #99a7ba; background: transparent; text-align: left; cursor: pointer; }
.plw-sidebar nav button.active { border-color: rgba(57, 125, 255, .68); color: white; background: linear-gradient(135deg, rgba(38, 78, 216, .48), rgba(14, 48, 130, .48)); }
.plw-sidebar nav button > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #edf5ff; background: rgba(148, 163, 184, .26); font-size: .72rem; }
.plw-sidebar nav button.active > b { background: linear-gradient(135deg, #2b6df5, #5da0ff); }
.plw-sidebar nav button.complete > b { color: #65e4b3; background: rgba(24, 184, 128, .2); }
.plw-sidebar nav strong, .plw-sidebar nav small { display: block; min-width: 0; }
.plw-sidebar nav strong { color: inherit; font-size: .69rem; }
.plw-sidebar nav small { margin-top: 3px; overflow: hidden; color: #7e8ca0; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.plw-note { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px; border: 1px solid rgba(78, 156, 255, .18); border-radius: 12px; color: #58dca9; background: rgba(8, 28, 48, .54); font-size: .64rem; line-height: 1.5; }
.plw-note svg { flex: 0 0 auto; }
.plw-note.wide { margin-top: 16px; }
.plw-content { min-width: 0; min-height: 0; padding: 14px 16px 22px; overflow-x: hidden; overflow-y: auto; }
.plw-panel { min-width: 0; min-height: 100%; padding: 16px 18px 20px; border: 1px solid rgba(148, 163, 184, .13); border-radius: 18px; background: rgba(4, 15, 29, .52); overflow: hidden; }
.plw-panel[hidden] { display: none !important; }
.plw-panel-title { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.plw-panel-title > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 11px; color: #67a7ff; background: rgba(18, 76, 178, .22); }
.plw-panel-title h3, .plw-panel-title p { margin: 0; }
.plw-panel-title h3 { font-size: 1.05rem; letter-spacing: -.02em; }
.plw-panel-title p { margin-top: 3px; color: #8291a5; font-size: .68rem; }
.plw-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.plw-grid .is-full, .plw-access.is-full, .plw-auto.is-full { grid-column: 1 / -1; }
.plw-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #e4ecf7; }
.plw-field > span, .plw-access legend { display: flex; align-items: center; gap: 6px; font-size: .69rem; font-weight: 800; }
.plw-field > span svg, .plw-access legend svg { width: 14px; height: 14px; color: #6aa8ff; }
.plw-field input, .plw-field textarea, .plw-field select, .plw-youtube input { width: 100%; min-width: 0; border: 1px solid rgba(148, 163, 184, .2); border-radius: 10px; outline: 0; color: #eef5ff; background: rgba(3, 13, 25, .88); transition: border .18s, box-shadow .18s; }
.plw-field input, .plw-field select, .plw-youtube input { min-height: 42px; padding: 0 12px; }
.plw-field textarea { min-height: 78px; padding: 10px 12px; resize: vertical; }
.plw-field input:focus, .plw-field textarea:focus, .plw-field select:focus, .plw-youtube input:focus { border-color: #3181ff; box-shadow: 0 0 0 3px rgba(49, 129, 255, .13); }
.plw-field small { color: #75869c; font-size: .61rem; }
.plw-access { min-width: 0; margin: 0; padding: 0; border: 0; }
.plw-access legend { margin-bottom: 7px; }
.plw-access > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.plw-choice { min-width: 0; cursor: pointer; }
.plw-choice input { position: absolute; opacity: 0; }
.plw-choice > span { position: relative; min-height: 105px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 8px; border: 1px solid rgba(148, 163, 184, .18); border-radius: 12px; color: #96a4b8; background: rgba(4, 15, 28, .7); text-align: center; }
.plw-choice > span > svg { width: 24px; height: 24px; color: #5b99ff; }
.plw-choice strong { color: #eaf2ff; font-size: .68rem; }
.plw-choice small { font-size: .58rem; line-height: 1.35; }
.plw-choice b { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; display: none; place-items: center; border-radius: 50%; color: white; background: #347cf0; }
.plw-choice b svg { width: 12px; height: 12px; }
.plw-choice input:checked + span { border-color: #3b82f6; background: rgba(23, 61, 116, .42); }
.plw-choice input:checked + span b { display: grid; }
.plw-auto { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(69, 146, 255, .18); border-radius: 11px; color: #62d8aa; background: rgba(8, 28, 48, .5); }
.plw-auto strong, .plw-auto small { display: block; }
.plw-auto strong { font-size: .67rem; }
.plw-auto small { margin-top: 2px; color: #8392a5; font-size: .6rem; }
.plw-drop { min-height: 310px; display: grid; place-items: center; padding: 18px; border: 1px dashed rgba(76, 143, 255, .55); border-radius: 18px; background: linear-gradient(145deg, rgba(11, 39, 83, .32), rgba(4, 15, 28, .5)); cursor: pointer; }
.plw-drop.dragging { border-color: #6aa8ff; background: rgba(25, 84, 172, .2); }
.plw-drop [data-plw-empty] { display: grid; place-items: center; gap: 7px; color: #94a5ba; text-align: center; }
.plw-drop [data-plw-empty] svg { width: 38px; height: 38px; color: #5799ff; }
.plw-drop [data-plw-empty] strong { color: white; font-size: 1rem; }
.plw-drop [data-plw-empty] b { padding: 7px 12px; border-radius: 9px; color: #ddecff; background: rgba(33, 107, 230, .25); font-size: .7rem; }
.plw-drop [data-plw-empty] small { font-size: .62rem; }
.plw-drop [data-plw-preview] { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(190px, .7fr); align-items: center; gap: 18px; }
.plw-drop [data-plw-preview][hidden] { display: none; }
.plw-drop img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 13px; }
.plw-drop section strong, .plw-drop section small { display: block; }
.plw-drop section small { margin-top: 5px; color: #8291a5; font-size: .65rem; }
.plw-drop section p { display: flex; flex-wrap: wrap; gap: 8px; }
.plw-drop section button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(83, 145, 239, .28); border-radius: 9px; color: #cfe1ff; background: rgba(19, 54, 103, .35); cursor: pointer; }
.plw-youtube { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border: 1px solid rgba(148, 163, 184, .17); border-radius: 16px; background: rgba(4, 15, 28, .62); }
.plw-youtube > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: #ff5a64; background: rgba(224, 44, 61, .15); }
.plw-youtube > span svg { width: 28px; height: 28px; }
.plw-youtube strong, .plw-youtube small { display: block; }
.plw-youtube input { margin: 7px 0 5px; }
.plw-youtube small { color: #8291a5; font-size: .64rem; }
.plw-youtube small.valid { color: #55dba5; }
.plw-youtube small.invalid { color: #ff808a; }
.plw-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.plw-resource { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 13px; background: rgba(4, 15, 28, .6); cursor: pointer; }
.plw-resource input { position: absolute; opacity: 0; }
.plw-resource > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #63a1ff; background: rgba(38, 96, 187, .2); }
.plw-resource strong, .plw-resource small { display: block; }
.plw-resource strong { font-size: .7rem; }
.plw-resource small { margin-top: 3px; color: #8290a4; font-size: .6rem; }
.plw-resource > b { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, .25); border-radius: 7px; color: transparent; }
.plw-resource input:checked ~ b { border-color: #3181ff; color: white; background: #246cdb; }
.plw-resource input:checked ~ div strong { color: #78adff; }
.plw-material-list { display: grid; gap: 8px; margin-bottom: 12px; }
.plw-material-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(148, 163, 184, .15); border-radius: 11px; background: rgba(4, 15, 28, .58); }
.plw-material-list article strong, .plw-material-list article small { display: block; }
.plw-material-list article small { margin-top: 2px; color: #8190a4; font-size: .6rem; }
.plw-material-list article p { margin: 4px 0 0; color: #9aa8ba; font-size: .62rem; }
.plw-material-list article button, .plw-secondary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(83, 145, 239, .3); border-radius: 9px; color: #d8e8ff; background: rgba(17, 54, 109, .32); cursor: pointer; }
.plw-material-empty { display: grid; place-items: center; gap: 5px; padding: 14px; border: 1px dashed rgba(148, 163, 184, .18); border-radius: 12px; color: #8291a5; text-align: center; }
.plw-material-empty strong { color: #dfe9f7; font-size: .72rem; }
.plw-material-empty small { font-size: .6rem; }
.plw-material-editor { padding: 13px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 14px; background: rgba(3, 12, 23, .62); }
.plw-material-editor .plw-secondary { margin-top: 12px; }
.plw-review-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 15px; padding: 13px; border: 1px solid rgba(148, 163, 184, .15); border-radius: 14px; background: rgba(3, 12, 23, .64); }
.plw-review-hero > img, .plw-review-hero > span { width: 180px; height: 102px; border-radius: 11px; object-fit: cover; }
.plw-review-hero > span { display: grid; place-items: center; color: #5c9cff; background: rgba(22, 70, 145, .2); }
.plw-review-hero h3, .plw-review-hero p { margin: 0; }
.plw-review-hero small { color: #58dba8; font-size: .62rem; }
.plw-review-hero h3 { margin-top: 3px; font-size: 1.05rem; }
.plw-review-hero p { margin-top: 5px; color: #8f9db0; font-size: .67rem; line-height: 1.5; }
.plw-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.plw-review-grid > div { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 11px; background: rgba(4, 15, 28, .55); }
.plw-review-grid > div > svg { color: #66a6ff; }
.plw-review-grid small, .plw-review-grid strong { display: block; }
.plw-review-grid small { color: #8090a5; font-size: .58rem; }
.plw-review-grid strong { margin-top: 2px; font-size: .68rem; }
.plw-footer { min-width: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid rgba(148, 163, 184, .14); background: rgba(4, 13, 25, .8); }
.plw-footer > div { display: flex; justify-content: flex-end; gap: 8px; min-width: 0; }
.plw-footer button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 10px; color: #d9e4f2; background: rgba(7, 20, 36, .82); font-size: .68rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.plw-footer button.primary { min-width: 140px; border-color: transparent; color: white; background: linear-gradient(135deg, #3739ed, #078bf0); box-shadow: 0 10px 25px rgba(28, 91, 224, .26); }
.plw-overlay.saving .plw-modal { pointer-events: none; opacity: .72; }
.plw-toast { position: fixed; z-index: 18000; right: 20px; bottom: 20px; max-width: min(390px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid rgba(75, 210, 155, .35); border-radius: 11px; color: #dffcef; background: #0a2b22; box-shadow: 0 18px 45px rgba(0, 0, 0, .4); }
.plw-toast.error { border-color: rgba(255, 91, 104, .4); color: #ffe3e7; background: #32131a; }
@media (max-width: 900px) {
  .plw-overlay { padding: 10px; }
  .plw-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .plw-form { height: calc(100vh - 20px); max-height: calc(100vh - 20px); }
  .plw-layout { grid-template-columns: 176px minmax(0, 1fr); }
  .plw-status > strong { display: none; }
  .plw-status > div { min-width: 180px; }
  .plw-access > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .plw-overlay { padding: 0; }
  .plw-modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .plw-form { height: 100dvh; max-height: 100dvh; }
  .plw-header { min-height: auto; align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 52px 12px 12px; }
  .plw-heading > span { width: 42px; height: 42px; flex-basis: 42px; }
  .plw-heading h2 { font-size: 1.25rem; }
  .plw-heading p { font-size: .66rem; }
  .plw-status { width: 100%; }
  .plw-status > div { width: 100%; }
  .plw-layout { display: flex; flex-direction: column; }
  .plw-sidebar { flex: 0 0 auto; display: block; padding: 8px; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, .14); overflow: hidden; }
  .plw-sidebar nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .plw-sidebar nav button { min-width: 42px; width: 42px; min-height: 42px; grid-template-columns: 1fr; padding: 5px; }
  .plw-sidebar nav button > svg, .plw-sidebar nav button > span { display: none; }
  .plw-sidebar nav button > b { width: 30px; height: 30px; }
  .plw-sidebar .plw-note { display: none; }
  .plw-content { padding: 8px 8px 16px; }
  .plw-panel { padding: 13px 11px 16px; border-radius: 14px; }
  .plw-grid, .plw-resources, .plw-review-grid { grid-template-columns: 1fr; }
  .plw-grid .is-full { grid-column: auto; }
  .plw-access > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plw-choice > span { min-height: 96px; }
  .plw-drop { min-height: 260px; }
  .plw-drop [data-plw-preview], .plw-review-hero { grid-template-columns: 1fr; }
  .plw-drop [data-plw-preview] img, .plw-review-hero > img, .plw-review-hero > span { width: 100%; }
  .plw-youtube { grid-template-columns: 1fr; }
  .plw-youtube > span { width: 44px; height: 44px; }
  .plw-footer { align-items: stretch; padding: 8px; }
  .plw-footer > div { flex: 1; }
  .plw-footer button { min-width: 0 !important; padding: 0 9px; font-size: .61rem; }
  .plw-footer > button { display: none; }
}
@media (max-width: 430px) {
  .plw-footer [data-plw-save-draft] { font-size: 0; }
  .plw-footer [data-plw-save-draft] svg { margin: 0; }
  .plw-access > div { grid-template-columns: 1fr; }
}
