/* One service, two purposeful workspaces. Latest brand and editorial assets stay intact. */
#pm-preview .work-kicker{font-size:10px;letter-spacing:1.6px;color:#61887c;display:block;margin-bottom:7px}
#pm-preview .work-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:8px 0 24px}
#pm-preview .work-heading h1{font:700 30px/1.3 Freesentation,Arial,sans-serif;margin:4px 0 9px;color:#173e36}
#pm-preview .work-heading p{font-size:14px;color:#687b73;line-height:1.7;margin:0}
#pm-preview .work-save{display:flex;gap:8px;align-items:center;flex-wrap:wrap;max-width:350px;justify-content:flex-end}
#pm-preview [data-save-state]{font-size:11px;color:#688378;flex-basis:100%;text-align:right}
#pm-preview .has-error{color:#a94449}
#pm-preview .work-layout{display:grid;grid-template-columns:190px minmax(280px,1.1fr) minmax(260px,1fr);gap:22px;align-items:start}
#pm-preview .work-layout.no-context{grid-template-columns:minmax(280px,1fr) minmax(260px,1fr)}
#pm-preview .work-context{position:sticky;top:95px;background:transparent;border:0;padding:14px 0;width:auto;height:auto;min-width:0}
#pm-preview .work-context h3{font-size:16px;line-height:1.5;margin:10px 0}
#pm-preview .work-context p{font-size:11px;line-height:1.7;color:#779185}
#pm-preview .work-steps{display:grid;gap:6px;margin:22px 0}
#pm-preview .work-steps button{display:flex;gap:10px;align-items:center;background:transparent;border:0;text-align:left;padding:11px 8px;font-size:12px}
#pm-preview .work-steps button span{margin-left:auto}#pm-preview .work-steps button small{color:#8aa397;font-size:10px}
#pm-preview .work-steps .current{background:#def1eb;color:#175848;font-weight:700}
#pm-preview .work-panel,#pm-preview .work-paper{padding:24px;background:white;border:1px solid #dde7e1;border-radius:22px;box-shadow:0 8px 26px #173e3604;min-width:0}
#pm-preview .work-panel h2{font:700 18px/1.4 Freesentation,Arial,sans-serif;margin:0 0 20px}
#pm-preview .work-editor,#pm-preview .work-preview{min-width:0}
#pm-preview .work-preview{position:sticky;top:95px}
#pm-preview .work-paper{min-height:520px;line-height:1.85;padding:32px;background:#fffef9}
#pm-preview .work-paper h2{font-size:25px;line-height:1.45;margin:25px 0 16px}
#pm-preview .work-paper h3{font-size:13px;color:#638777;margin:22px 0 7px}
#pm-preview .work-paper p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
#pm-preview .work-paper footer{border-top:1px solid #e4e9df;padding-top:18px;margin-top:30px;font-size:12px;color:#6c897b}
#pm-preview .work-panel label{font-size:12px;font-weight:700;color:#4d685d;margin-bottom:18px}
#pm-preview .work-panel input,#pm-preview .work-panel select,#pm-preview .work-panel textarea{background:#fcfdfc;font:15px/1.7 Freesentation,Arial,sans-serif;border:1px solid #dce7df;border-radius:12px;padding:11px 12px;color:#183e31}
#pm-preview .work-panel textarea{min-height:120px}
#pm-preview textarea[data-field="record.brief"],#pm-preview textarea[data-field="marketing"]{min-height:310px}
#pm-preview .work-fields{display:grid;grid-template-columns:1.1fr 1fr;gap:12px}
#pm-preview .work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
#pm-preview .work-fine{font-size:11px!important;color:#6c8477;line-height:1.8!important}
#pm-preview .work-badge{display:inline-flex;background:#e8f4ec;color:#2c7259;padding:7px 11px;border-radius:20px;font-size:11px;margin:6px 0}
#pm-preview .work-roster{max-height:520px;overflow:auto}
#pm-preview .work-student{display:flex;gap:10px;align-items:center;border-bottom:1px solid #edf1ed;padding:9px 0}
#pm-preview .work-student[hidden]{display:none}
#pm-preview .work-student select{width:92px;flex:none;margin:0}
#pm-preview .student-name{display:flex;align-items:center;gap:10px;flex:1;border:0;background:transparent;text-align:left;padding:7px}
#pm-preview .student-name>span{background:#e2efe4;border-radius:50%;width:33px;height:33px;display:grid;place-items:center}
#pm-preview .student-name.selected{background:#eff7f2}
#pm-preview .photo-empty{padding:50px 15px;text-align:center;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#638776}
#pm-preview .photo-empty img{width:50px;height:50px;margin-bottom:15px}
#pm-preview .photo-empty h3{font-size:17px}#pm-preview .photo-empty p{font-size:12px}
#pm-preview .brief-art{width:100%;max-height:230px;object-fit:contain;background:#f0f5f0;border-radius:12px}
#pm-preview .template-options{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}
#pm-preview .template-options button{font-size:11px;padding:9px 13px}
#pm-preview .template-options button[aria-pressed=true]{background:#def1eb;border-color:#80c7bc}
#pm-preview .work-poster{aspect-ratio:4/5;background:#def1eb;padding:35px 28px;text-align:center;display:flex;flex-direction:column;justify-content:space-between;align-items:center;border:1px solid #c4ddd1;border-radius:18px;overflow:hidden;color:#173e36}
#pm-preview .work-poster.yellow{background:#fff3b4}#pm-preview .work-poster.white{background:#fff}
#pm-preview .work-poster h2{font:700 30px/1.4 Freesentation,Arial,sans-serif;margin:20px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#pm-preview .work-poster p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
#pm-preview .work-poster small{font-size:10px;letter-spacing:2px}
#pm-preview .work-poster footer{font-size:12px;line-height:1.8}
#pm-preview .poster-motif img{width:68px;height:68px;margin:22px 0 0}
#pm-preview .social-profile{display:flex;align-items:center;gap:10px;margin-bottom:16px}.social-profile img{width:32px;height:32px}
#pm-preview .social-art{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
#pm-preview .social-preview p{white-space:pre-wrap;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
#pm-preview .brand-preview{text-align:center;padding:70px 10px;background:#eef7f1;border-radius:18px}.brand-preview img{width:75px;height:75px;margin-bottom:30px}
#pm-preview .daily-work{border:1px solid #d9e8df;background:linear-gradient(120deg,#e2f3ec,#f8f5e9 90%);border-radius:24px;padding:28px;margin-bottom:25px}
#pm-preview .daily-work h2{font:700 27px/1.35 Freesentation,Arial,sans-serif;margin:10px 0}
#pm-preview .daily-work p{font-size:13px;color:#5e7e6d}
#pm-preview .daily-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
#pm-preview .daily-actions button{display:grid;grid-template-columns:34px 1fr;gap:4px 12px;align-items:center;text-align:left;border:1px solid #dce6da;background:#ffffffe0;padding:17px;border-radius:16px}
#pm-preview .daily-actions img{width:27px;height:27px;grid-row:span 2}#pm-preview .daily-actions small{color:#758979;font-size:11px}
#pm-preview .daily-next{display:flex;align-items:center;gap:12px;border-top:1px solid #d8e6da;padding-top:16px;font-size:13px}
#pm-preview .daily-next span{font-size:11px;color:#759180}#pm-preview .daily-next button{margin-left:auto;background:transparent}
#pm-preview .device-choice{display:flex;background:#eff5f1;border:1px solid #e0e8e0;border-radius:12px;padding:3px;gap:3px}
#pm-preview .device-choice button{font-size:11px;border:0;background:transparent;min-height:32px;padding:7px 12px}
#pm-preview .device-choice [aria-pressed=true]{background:white;box-shadow:0 2px 5px #173e3610}
#pm-preview .work-mobile-tabs{display:none}
#pm-preview .camera-choice{display:flex;align-items:center;justify-content:center;border:1px solid #c4ded0;background:#e5f2ea;border-radius:12px;padding:14px;cursor:pointer;grid-column:1/-1}
#pm-preview .camera-choice input{position:absolute;width:1px;height:1px;opacity:0}
#pm-preview[data-layout=desktop].studio-active{display:grid;grid-template-columns:232px minmax(0,1fr);padding-bottom:0;border-radius:0;overflow:visible}
#pm-preview[data-layout=desktop]>aside{position:sticky;top:0;height:100dvh;overflow-y:auto;background:#80c7bc;padding:26px 16px;border:0;display:block!important}
#pm-preview[data-layout=desktop]>aside nav{display:flex;flex-direction:column;gap:6px}
#pm-preview[data-layout=desktop]>aside nav button{display:flex;gap:11px;align-items:center;text-align:left;padding:13px 14px;border-radius:13px;font-size:13px;color:#184b40;background:transparent;min-height:46px}
#pm-preview[data-layout=desktop]>aside nav button.active{background:#fff9d9;box-shadow:0 4px 14px #17584712}
#pm-preview[data-layout=desktop]>aside .pm-brand{padding:10px 0 28px;text-align:center;font:23px Georgia,serif;color:#173e36}
#pm-preview[data-layout=desktop]>aside .pm-brand img{display:block;width:45px;height:45px;margin:0 auto 14px}
#pm-preview[data-layout=desktop]>aside .pm-brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:9px}
#pm-preview[data-layout=desktop].studio-active>section>header{display:flex!important;position:sticky;top:0;z-index:25;align-items:center;justify-content:space-between;padding:17px 28px;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid #e1eae2;gap:18px}
#pm-preview[data-layout=desktop]>section>header strong{font-size:14px}#pm-preview[data-layout=desktop]>section>header small{font-size:11px;color:#809386;margin-left:14px}
#pm-preview[data-layout=desktop].studio-active main{max-width:1600px;padding:28px 32px 50px;margin:auto}
#pm-preview[data-layout=desktop].app-shell .studio-dock,#pm-preview[data-layout=desktop] .studio-mobile-header{display:none!important}
#pm-preview[data-layout=desktop].pm-brand-mode>aside{display:none!important}
#pm-preview[data-layout=desktop].pm-brand-mode{display:block;padding-bottom:0}
#pm-preview[data-layout=desktop] .journal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#pm-preview[data-layout=desktop] .academy-island{margin-left:0;margin-right:0}
#pm-preview[data-layout=desktop].pm-brand-mode .academy-island{margin-left:30px;margin-right:30px}
#pm-preview[data-layout=mobile]{display:flex;flex-direction:column;width:min(100%,760px);margin:0 auto;min-width:0;border-radius:0;padding-bottom:90px;overflow:visible}
#pm-preview[data-layout=mobile]>aside,#pm-preview[data-layout=mobile]>section>header{display:none!important}
#pm-preview[data-layout=mobile] .studio-mobile-header,#pm-preview[data-layout=mobile].pm-brand-mode .studio-mobile-header,#pm-preview[data-layout=mobile].studio-active .studio-mobile-header{display:flex!important;position:sticky;top:0;order:-1;z-index:30;justify-content:space-between;align-items:center;padding:12px 18px;background:#fffffff2;backdrop-filter:blur(12px);border-bottom:1px solid #e2eae2}
#pm-preview[data-layout=mobile] .layout-back{background:linear-gradient(155deg,#fffbd5 0%,#fff6a9 48%,#f6e68d 100%)!important;color:#254d41!important;border:1px solid #fffbd0!important;border-radius:12px!important;padding:8px 14px!important;min-height:40px!important;font-size:14px!important;font-weight:800!important;box-shadow:0 3px 0 #d8c97e!important}
#pm-preview[data-layout=mobile] .studio-mobile-header button{background:transparent;border:0;display:flex;align-items:center;gap:12px;padding:5px}
#pm-preview[data-layout=mobile].studio-active main{padding:18px 16px 30px!important}
#pm-preview[data-layout=mobile] .studio-dock{max-width:760px;margin:auto}
#pm-preview[data-layout=mobile] .work-heading{display:block;margin-bottom:18px}#pm-preview[data-layout=mobile] .work-heading h1{font-size:25px}
#pm-preview[data-layout=mobile] .work-save{justify-content:flex-start;max-width:none;margin-top:15px}#pm-preview[data-layout=mobile] [data-save-state]{text-align:left}
#pm-preview[data-layout=mobile] .work-save button{font-size:12px}
#pm-preview[data-layout=mobile] .work-layout,#pm-preview[data-layout=mobile] .work-layout.no-context{display:block}
#pm-preview[data-layout=mobile] .work-context{display:none}
#pm-preview[data-layout=mobile] .work-preview{position:static}
#pm-preview[data-layout=mobile][data-pane=edit] .work-preview{display:none}
#pm-preview[data-layout=mobile][data-pane=preview] .work-editor{display:none}
#pm-preview[data-layout=mobile] .work-mobile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#e8f0eb;padding:4px;border-radius:14px;margin-bottom:18px}
#pm-preview[data-layout=mobile] .work-mobile-tabs button{border:0;background:transparent;padding:11px;font-size:13px}
#pm-preview[data-layout=mobile] .work-mobile-tabs button[aria-pressed=true]{background:white;box-shadow:0 2px 5px #193f3512}
#pm-preview[data-layout=mobile] .work-panel,#pm-preview[data-layout=mobile] .work-paper{padding:20px}
#pm-preview[data-layout=mobile] .work-panel input,#pm-preview[data-layout=mobile] .work-panel select,#pm-preview[data-layout=mobile] .work-panel textarea{font-size:16px}
#pm-preview[data-layout=mobile] .work-actions button{flex:1;min-height:46px}
#pm-preview[data-layout=mobile] .daily-work{padding:21px 17px}#pm-preview[data-layout=mobile] .daily-work h2{font-size:23px}
#pm-preview[data-layout=mobile] .daily-actions{grid-template-columns:1fr;gap:9px;margin:19px 0}
#pm-preview[data-layout=mobile] .daily-actions button{grid-template-columns:32px 1fr auto;min-height:66px;padding:14px}
#pm-preview[data-layout=mobile] .daily-actions img{grid-row:auto}#pm-preview[data-layout=mobile] .daily-actions small{font-size:10px}
#pm-preview[data-layout=mobile] .daily-next{flex-wrap:wrap}#pm-preview[data-layout=mobile] .daily-next>strong{font-size:12px}
#pm-preview[data-layout=mobile] .launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#pm-preview[data-layout=mobile] .journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#pm-preview[data-layout=mobile] .academy-island{margin:22px 0}
#pm-preview[data-layout=mobile].pm-brand-mode .academy-island{margin:0 12px 20px}
#pm-preview[data-layout=mobile] .academy-growth{grid-template-columns:1fr}
#pm-preview[data-layout=mobile] .period-form,#pm-preview[data-layout=mobile] .student-form,#pm-preview[data-layout=mobile] .academy-metrics{grid-template-columns:1fr 1fr}
#pm-preview[data-layout=mobile] .art-upload{padding:18px}
#pm-preview[data-layout=mobile][data-page=manager] .work-mobile-tabs button:first-child{font-size:0}#pm-preview[data-layout=mobile][data-page=manager] .work-mobile-tabs button:first-child:after{content:'출결 체크';font-size:13px}
#pm-preview[data-layout=mobile][data-page=manager] .work-mobile-tabs button:last-child{font-size:0}#pm-preview[data-layout=mobile][data-page=manager] .work-mobile-tabs button:last-child:after{content:'관찰 메모';font-size:13px}
@media(min-width:1001px) and (max-width:1350px){#pm-preview[data-layout=desktop] .work-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#pm-preview[data-layout=desktop] .work-context{grid-column:1/-1;position:static;padding:0}#pm-preview[data-layout=desktop] .work-context>h3,#pm-preview[data-layout=desktop] .work-context>p,#pm-preview[data-layout=desktop] .work-context>.work-kicker{display:none}#pm-preview[data-layout=desktop] .work-steps{display:flex;flex-wrap:wrap;margin:0}#pm-preview[data-layout=desktop].studio-active main{padding:24px}}
@media(max-width:600px){#pm-preview .work-fields{grid-template-columns:1fr}#pm-preview .daily-actions small{max-width:110px}#pm-preview .work-paper{min-height:400px}}
@media print{body>div:first-child{display:none!important}#pm-preview,#pm-preview>section,#pm-preview main{display:block!important;padding:0!important;margin:0!important;width:100%!important}#pm-preview>aside,#pm-preview header,#pm-preview .studio-dock,#pm-preview .studio-mobile-header,#pm-preview .work-heading,#pm-preview .work-context,#pm-preview .work-editor,#pm-preview .work-mobile-tabs,#pm-status{display:none!important}#pm-preview .work-layout{display:block!important}#pm-preview .work-preview{display:block!important;position:static}#pm-preview .work-paper{border:0;box-shadow:none}}
#pm-preview[data-layout=mobile].app-shell .studio-dock{padding:8px 8px calc(8px + env(safe-area-inset-bottom));width:min(100%,760px)}

#pm-preview.pm-brand-mode .ed-header{border-bottom:0!important}

/* Keep account controls reachable when the navigation fills the viewport. */
#pm-preview[data-layout=desktop]>aside{display:flex;flex-direction:column}
#pm-preview[data-layout=desktop]>aside>nav{flex:1;min-height:0;overflow-y:auto}
#pm-preview [data-backend-account]{flex-shrink:0}
