*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",Arial,sans-serif;background:#f4f6f8;color:#20242a}
a{color:inherit;text-decoration:none}
.top{position:sticky;top:0;z-index:30;height:58px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 20px}
.brand b{font-size:18px}
.brand span{margin-left:10px;color:#8a9099;font-size:12px}
.topright{display:flex;align-items:center;gap:10px}
.topright a{font-size:13px;color:#666}
.notifybtn{width:auto!important;padding:7px 9px!important;background:#eef2f7;color:#555;font-size:11px}
.backupcount{font-size:10px;color:#8a9099;white-space:nowrap}
.tabs{position:sticky;top:58px;z-index:25;display:flex;gap:5px;overflow-x:auto;background:#fff;border-bottom:1px solid #e5e7eb;padding:7px max(14px,calc((100vw - 1280px)/2 + 14px))}
.tabs a{white-space:nowrap;padding:8px 11px;border-radius:9px;font-size:13px;color:#616872}
.tabs a.on{background:#222;color:#fff}
.tabs em{font-style:normal;background:#e9edf2;color:#333;border-radius:999px;padding:2px 6px;font-size:10px;margin-left:4px}
.tabs a.on em{background:#fff;color:#222}
.tabs em.red{background:#e33;color:#fff}
.wrap{max-width:1280px;margin:16px auto;padding:0 14px 55px}
.flash{padding:11px 14px;background:#fff6d8;border:1px solid #f2df9b;border-radius:10px;margin-bottom:12px}
.progressbox,.card,.qcard,.tablewrap{background:#fff;border:1px solid #e2e6ea;border-radius:14px}
.progressbox{padding:14px 16px;margin-bottom:14px}
.stats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.stats div{text-align:center;padding:5px}
.stats strong{display:block;font-size:20px}
.stats span{font-size:11px;color:#7b828b}
.bar{height:8px;background:#edf0f3;border-radius:100px;overflow:hidden;margin-top:11px}
.bar i{display:block;height:100%;background:#222}
.progresslabel{text-align:right;font-size:11px;color:#777;margin-top:5px}
.layout{display:grid;grid-template-columns:330px 1fr;gap:14px}
.card{padding:16px;margin-bottom:14px}
.card h2{font-size:16px;margin:0 0 12px}
.card h3{font-size:14px}
.help,.empty{font-size:12px;color:#828890;line-height:1.5}
.empty.big{text-align:center;padding:70px 10px;font-size:14px}
input,select,textarea,button{font:inherit}
input[type=file],input[type=text],input[type=password],input:not([type]),select,textarea{width:100%;border:1px solid #d7dbe0;border-radius:9px;padding:10px;background:#fff}
button{width:100%;border:0;border-radius:9px;padding:11px;font-weight:700;cursor:pointer}
.primary{background:#222;color:#fff;margin-top:9px}
.secondary{background:#eef2f7;color:#222;margin-top:8px}
.compact{width:auto!important;margin:0!important;padding:9px 12px!important}
.linkbtn{display:inline-block;padding:9px 12px;border-radius:9px}
.source{border-top:1px solid #eee;padding:9px 0}
.source summary{cursor:pointer;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.source form{padding-top:8px}
.source label,.metaedit label{display:block;font-size:11px;color:#757b84;margin:6px 0}
.source input,.source select,.metaedit input{margin-top:4px}
.reviewhead,.pagehead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pagehead{margin-bottom:14px}
.pagehead h1{font-size:21px;margin:0}
.pagehead p{font-size:12px;color:#777;margin:5px 0 0}
.pill{font-size:11px;background:#f0f2f5;padding:5px 8px;border-radius:999px;color:#666;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.metaedit{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:12px}
.passage{background:#f7f8fa;border-radius:10px;padding:14px;white-space:pre-wrap;line-height:1.7;font-size:14px;max-height:320px;overflow:auto}
.stem{font-size:17px!important;line-height:1.55;margin:18px 0 12px!important}
.choices div{padding:9px 11px;border:1px solid #eceff2;border-radius:8px;margin:7px 0;line-height:1.45}
.answer{margin-top:14px}
.explain{background:#fafafa;padding:12px;border-radius:8px;margin:8px 0 16px;font-size:13px;line-height:1.6}
.chips,.statuschips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.chip input{display:none}
.chip span,.statuschips a{display:inline-block;padding:7px 9px;border:1px solid #dfe3e7;border-radius:999px;font-size:12px;background:#fff}
.chip input:checked+span,.statuschips a.on{background:#222;color:#fff;border-color:#222}
textarea{min-height:74px;resize:vertical}
.tall{min-height:180px}
.field{display:block;font-size:12px;color:#666;margin:10px 0}
.field input,.field textarea,.field select{margin-top:5px}
.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.actions.three{grid-template-columns:repeat(3,1fr)}
.accept{background:#dff5e7}
.edit{background:#fff0cc}
.reject{background:#f9dddd}
.hold{background:#e9edf2}
.listgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qcard{display:block;padding:14px}
.qcard b{font-size:14px;line-height:1.45}
.qcard p{font-size:12px;color:#666;margin:7px 0}
.qcard>span{font-size:11px;color:#9298a0}
.qmeta{font-size:11px;color:#828890;margin-bottom:7px}
.selectable{display:flex;gap:11px}
.selectable>input{width:auto;align-self:flex-start;margin-top:3px}
.batchbar{position:sticky;top:111px;z-index:20;background:#fff;border:1px solid #e2e6ea;border-radius:12px;padding:9px;display:flex;align-items:center;gap:7px;margin-bottom:10px;overflow-x:auto}
.batchbar label{white-space:nowrap;font-size:12px}
.batchbar button{width:auto;white-space:nowrap;padding:8px 10px}
.filters{display:flex;gap:7px;margin-bottom:10px}
.filters select{max-width:180px}
.tablewrap{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:12px}
th,td{text-align:left;border-bottom:1px solid #eee;padding:10px}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.info{display:grid;grid-template-columns:90px 1fr;gap:7px;font-size:13px}
.info dt{color:#777}
.info dd{margin:0}
.filelist{list-style:none;padding:0;margin:0 0 12px}
.filelist li{padding:8px 0;border-bottom:1px solid #eee;font-size:12px}
.filelist span{float:right;color:#999}
.requestfoot{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:#777}
.status{background:#eef2f7;border-radius:999px;padding:3px 7px}
.status.new{background:#ffe3e3;color:#a22}
.loginbody,.publicbody{min-height:100vh;display:grid;place-items:center;padding:20px}
.loginbox,.publicbox{width:min(480px,100%);background:#fff;padding:24px;border:1px solid #e2e6ea;border-radius:16px}
.loginbox h1,.publicbox h1{font-size:21px}
.loginbox p,.publicbox p{font-size:13px;color:#666;line-height:1.6}
.center{text-align:center}
@media(max-width:800px){.top{padding:0 12px}.brand span{display:none}.wrap{margin-top:10px;padding:0 9px 40px}.stats{grid-template-columns:repeat(3,1fr)}.layout,.twocol{grid-template-columns:1fr}.card{padding:13px;border-radius:12px}.metaedit{grid-template-columns:repeat(2,1fr)}.review{order:-1}.actions{position:sticky;bottom:8px;background:rgba(255,255,255,.95);padding:8px 0 2px;z-index:10}.actions button{padding:13px 5px}.stem{font-size:16px!important}.passage{max-height:240px}.listgrid{grid-template-columns:1fr}.pagehead{align-items:flex-start}.batchbar{top:111px}.filters{display:grid;grid-template-columns:1fr 1fr auto}.tabs{padding-left:9px}.notifybtn{display:none}}
/* v1.1.1 */
.sourcehide{margin-top:7px;background:transparent!important;border:1px dashed #d5d9de!important;color:#7a8088!important;font-size:11px!important;padding:8px!important}
.acceptedcard{align-items:flex-start}
.acceptedcard .qbody{min-width:0;flex:1}
.previewbtn{width:auto!important;margin-top:5px;padding:7px 10px!important;background:#eef2f7;color:#333;font-size:12px}
.modal{display:none;position:fixed;inset:0;z-index:100}
.modal.open{display:block}
.modalback{position:absolute;inset:0;background:rgba(18,22,28,.58);backdrop-filter:blur(2px)}
.modalpanel{position:absolute;top:4vh;bottom:4vh;left:50%;transform:translateX(-50%);width:min(920px,94vw);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.3);display:flex;flex-direction:column}
.modalhead{display:flex;justify-content:space-between;align-items:center;padding:14px 17px;border-bottom:1px solid #e8ebee}
.modalhead>div{display:flex;flex-direction:column;gap:3px}
.modalhead span{font-size:11px;color:#777}
.modalclose{width:auto!important;background:#eef2f7;padding:8px 10px!important}
.modalcontent{padding:18px;overflow:auto;line-height:1.65}
.previewSource{font-size:11px;color:#858b93;margin-bottom:10px}
.previewPassage{white-space:pre-wrap;background:#f6f7f9;border-radius:12px;padding:16px;margin-bottom:17px}
.previewStem{font-size:19px;line-height:1.55;margin:0 0 14px}
.previewChoices div{padding:10px 12px;border:1px solid #e6e9ec;border-radius:9px;margin:7px 0}
.previewAnswer{margin:18px 0 8px}
.previewExplain{background:#fafafa;border-radius:10px;padding:13px}
.previewAdmin{margin-top:16px;border-top:1px solid #eee;padding-top:14px;font-size:12px;color:#555}
.previewTags,.miniTags,.memoTags{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.previewTags span,.miniTags span,.memoTags span{display:inline-block;background:#eef2f7;border-radius:999px;padding:4px 7px;font-size:10px}
.reviewmemo{background:#fff8e7;border:1px solid #f0dfaa;border-radius:13px;padding:13px 15px;margin-bottom:12px}
.reviewmemo p{white-space:pre-wrap;margin:8px 0;font-size:13px}
.reviewmemo small{color:#84775f}
.mutedtext{color:#999!important;background:transparent!important}
.savedcomment{white-space:pre-wrap}
.schoolgroup{margin:0 0 20px}
.schoolhead{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}
.schoolhead h2{font-size:16px;margin:0}
.schoolhead span{font-size:11px;color:#777;background:#e9edf2;border-radius:999px;padding:4px 8px}
.busyoverlay{display:none;position:fixed;inset:0;z-index:120;background:rgba(20,24,30,.62);align-items:center;justify-content:center;padding:20px}
.busyoverlay.open{display:flex}
.busybox{width:min(480px,94vw);background:#fff;border-radius:18px;padding:24px;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.spinner{width:36px;height:36px;border:4px solid #e7e9ec;border-top-color:#222;border-radius:50%;margin:0 auto 15px;animation:spin .8s linear infinite}
.busybox>b{display:block;font-size:18px}
.busybox>span{display:block;font-size:11px;color:#777;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.busysteps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:18px 0 12px}
.busysteps span{font-size:10px;color:#aaa;padding-top:8px;border-top:4px solid #e5e7ea}
.busysteps span.on{color:#222;border-color:#222}
.busybox small{font-size:12px;color:#666}
.busybox p{font-size:11px;color:#999;margin:9px 0 0}
.modalopen{overflow:hidden}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:800px){.modalpanel{inset:0;transform:none;width:100%;height:100%;border-radius:0}.modalcontent{padding:14px}.modalhead{padding-top:max(14px,env(safe-area-inset-top))}.previewStem{font-size:17px}.busysteps{grid-template-columns:1fr 1fr}.schoolgroup .listgrid{grid-template-columns:1fr}}
/* v1.1.2 */
.printsetup{background:#fff;border:1px solid #e2e6ea;border-radius:12px;padding:11px 13px;margin-bottom:9px}
.printsetup label{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:9px;font-size:12px;font-weight:700}
.changesummary{background:#edf8f1;border:1px solid #cfe9d8;border-radius:13px;padding:13px 15px;margin-bottom:12px}
.changesummary p{margin:7px 0;white-space:pre-wrap;font-size:13px}
.changesummary ul{margin:8px 0 0;padding-left:20px;font-size:12px;color:#4e5b53}
.changesummary li{margin:4px 0}
@media(max-width:800px){.printsetup label{grid-template-columns:1fr;gap:5px}}
/* v1.1.3 */
.danger{background:#f7d7d7!important;color:#8f2626!important}
.dangerlite{width:auto!important;background:#fff!important;border:1px solid #efcaca!important;color:#a23c3c!important;padding:8px 10px!important;border-radius:9px!important;font-weight:700}
.sourceactions,.rowactions,.cardbuttons{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.sourceactions .sourcehide{width:auto!important;flex:1}
.sourceactions .dangerlite{flex:0 0 auto}
.rowactions form{margin:0}
.qcardactions{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.qmainlink{display:block;min-width:0;flex:1}
.qcardactions form{flex:0 0 auto}
.cardbuttons{margin-top:8px}
.cardbuttons button{width:auto!important;margin:0!important}
.actions.two{grid-template-columns:1fr 1fr}
.centerbtn{display:flex!important;align-items:center;justify-content:center;text-align:center}
.reeditinstruction textarea{min-height:110px}
.printsetup{background:#fff;border:1px solid #e2e6ea;border-radius:12px;padding:10px 12px;margin-bottom:9px}
.printsetup label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;font-size:12px;font-weight:700}
.printsetup input{margin:0!important}
.changesummary{background:#eef8ef;border:1px solid #cfe6d2;border-radius:12px;padding:12px 14px;margin-bottom:12px;font-size:13px}
@media(max-width:800px){
  .qcardactions{align-items:stretch}.qcardactions form{align-self:flex-end}
  .printsetup label{grid-template-columns:1fr}
  .rowactions{min-width:220px}
}
/* v1.1.4 underline + accepted action buttons */
.cardbuttons{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.cardbuttons .cardactionbtn{
  width:auto!important;
  min-width:72px!important;
  height:36px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:36px!important;
  font-weight:700!important;
  text-align:center!important;
  flex:0 0 auto!important;
}
.cardbuttons .previewbtn{
  background:#eef2f7!important;
  color:#222!important;
}
.cardbuttons .secondary{
  background:#eef2f7!important;
  color:#222!important;
}
.previewStem u,.previewPassage u,.previewChoices u,
.qcard u,.stem u,.passage u,.choices u{
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}
/* v1.1.7 보기 구조 */
.questionpassage,.previewPassage{position:relative;margin-top:18px!important;padding-top:20px!important}
.questionpassage .viewlabel,.previewPassage .boxtitle{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  background:#fff;padding:1px 8px;font-size:11px;font-weight:800;color:#333;
  border:1px solid #d7dbe0;border-radius:999px;
}
/* v1.1.8 batch structure cleanup */
.structurebtn{
  width:auto!important;
  white-space:nowrap;
  background:#222!important;
  color:#fff!important;
  padding:8px 11px!important;
}
.batchhelp{font-size:11px;color:#747b84;white-space:nowrap}
.revisionselectable{align-items:flex-start}
.revisionselectable>.revcheck{width:auto;margin-top:3px;flex:0 0 auto}
.structurelist{display:grid;gap:12px}
.structurecard{margin-bottom:0}
.structurehead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.structurehead label{font-size:13px;font-weight:800;display:flex;align-items:center;gap:6px}
.structurehead input{width:auto}
.structurehead .qmeta{margin:0}
.changedbadge,.samebadge{font-size:10px;border-radius:999px;padding:4px 7px;font-weight:700}
.changedbadge{background:#dff5e7;color:#27643a}
.samebadge{background:#eef2f7;color:#68717b}
.structurereason{font-size:12px;color:#68717b;margin:0 0 10px}
.structurecompare{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.structurepane{border:1px solid #e2e6ea;border-radius:12px;padding:12px;background:#fafbfc}
.structurepane.after{background:#f7fbf7;border-color:#d9eadc}
.structurepane h3{font-size:13px;margin:0 0 10px}
.structurebox{position:relative;border:1px solid #aeb5bd;background:#fff;padding:18px 12px 12px;margin:15px 0 10px;white-space:pre-wrap;line-height:1.65}
.structureboxtitle{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:#fff;padding:0 7px;font-size:11px}
.structurestem{font-weight:750;font-size:14px;line-height:1.55;white-space:pre-wrap}
@media(max-width:800px){
  .structurecompare{grid-template-columns:1fr}
  .batchhelp{display:none}
  .structurebtn{padding:9px 10px!important}
}
/* v1.1.9 compact unified actions + question-first layout */
.batchbar{
  padding:8px 10px!important;
  gap:6px!important;
}
.batchbar button,
.batchbar .structurebtn{
  width:auto!important;
  min-width:0!important;
  height:34px!important;
  margin:0!important;
  padding:0 11px!important;
  border:0!important;
  border-radius:8px!important;
  background:#eef2f7!important;
  color:#20242a!important;
  font-size:11.5px!important;
  line-height:34px!important;
  font-weight:650!important;
  white-space:nowrap!important;
}
.batchbar button:hover,
.batchbar .structurebtn:hover{
  background:#e4e9ef!important;
}
.cardbuttons{
  gap:6px!important;
}
.cardbuttons .cardactionbtn{
  min-width:64px!important;
  height:34px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
  line-height:34px!important;
  font-weight:650!important;
}
.cardbuttons .danger{
  background:#f7d7d7!important;
  color:#8f2626!important;
}
.previewStem{
  margin:0 0 18px!important;
}
.previewPassage{
  margin-top:0!important;
  margin-bottom:16px!important;
}
.questionpassage{
  margin-top:4px!important;
  margin-bottom:14px!important;
}
.structurestem{
  margin-bottom:18px;
}
.structurebox{
  margin-top:0!important;
}
/* v1.2.0 accepted trash */
.trashcard{display:block}
.trashcard>small{display:block;margin-top:6px;color:#9298a0;font-size:10.5px}
.trashpassage{
  position:relative;
  margin:16px 0 8px;
  padding:16px 12px 10px;
  border:1px solid #d8dde3;
  border-radius:9px;
  background:#fafbfc;
  white-space:pre-wrap;
  line-height:1.55;
  font-size:12px;
}
.trashpassage>span{
  position:absolute;
  top:-9px;
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  padding:0 7px;
  font-size:10px;
  font-weight:750;
  color:#555;
}
.trashactions{display:flex;gap:7px;margin-top:10px}
.trashactions form{margin:0}
.restorebtn{
  width:auto!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:8px!important;
  background:#e2f4e7!important;
  color:#245f35!important;
  font-size:11.5px!important;
  font-weight:700!important;
}
/* v1.2.1 naesin project workspace */
.pageactions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.naesinworkspace{display:grid;grid-template-columns:1fr 1.25fr;gap:14px}
.naesinworkspace.lower{grid-template-columns:1.1fr .9fr;margin-top:14px}
.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.sectionhead h2{margin:0!important}
.sectionhead>span{font-size:10.5px;color:#858c95;background:#eef2f7;border-radius:999px;padding:4px 7px}
.naesinfiles{display:grid;gap:7px;margin-bottom:12px}
.naesinfile{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e8ec;border-radius:9px;padding:9px 10px}
.filemeta{min-width:0;display:flex;flex-direction:column;gap:3px}
.filemeta b{font-size:12.5px;overflow-wrap:anywhere}
.filemeta small{font-size:10px;color:#8a919a}
.fileactions{display:flex;gap:5px;align-items:center;flex:0 0 auto}
.fileactions form{margin:0}
.mini{width:auto!important;height:30px!important;line-height:30px!important;padding:0 8px!important;margin:0!important;font-size:10.5px!important;border-radius:7px!important}
.addfiles{border-top:1px solid #eee;padding-top:11px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.addfiles button{margin:0!important}
.analysisbox{font-size:12.5px;line-height:1.6}
.analysissummary{font-size:13px;background:#fafbfc;border:1px solid #e6e9ed;border-radius:9px;padding:11px;margin:0 0 12px}
.analysisbox h3{font-size:11.5px;margin:12px 0 6px;color:#555}
.analysisbox ul{margin:5px 0;padding-left:19px}
.analysisbox li{margin:3px 0}
.tagrow{display:flex;gap:5px;flex-wrap:wrap}
.tagrow span{font-size:10.5px;background:#eef2f7;border-radius:999px;padding:5px 7px}
.sourceroles{display:grid;gap:6px}
.sourceroles>div{border:1px solid #e5e8ec;border-radius:8px;padding:8px}
.sourceroles b{font-size:11.5px}
.sourceroles span{font-size:9.5px;background:#eef2f7;border-radius:999px;padding:3px 6px;margin-left:6px}
.sourceroles p{font-size:11px;color:#666;margin:4px 0 0}
.warnings{color:#8b5d19}
.naesingenopts{display:grid;grid-template-columns:1fr 1fr 1fr .65fr;gap:7px;margin:10px 0}
.naesingenopts label{font-size:10.5px;color:#747b84}
.naesingenopts input,.naesingenopts select{margin-top:4px}
.projectcounts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:11px}
.projectcounts span{font-size:10.5px;background:#f5f7f9;border-radius:8px;padding:8px;text-align:center}
.projectcounts b{display:block;font-size:16px;margin-top:2px}
.projectquestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.projectq{position:relative;border:1px solid #e5e8ec;border-radius:9px;padding:10px 58px 10px 10px}
.projectq b{font-size:12px;line-height:1.45}
.projectq>.status{position:absolute;right:9px;top:9px;font-size:9.5px}
.projectreviewbanner{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#eef5ff;border:1px solid #cadcf5;border-radius:10px;padding:9px 12px;margin-bottom:12px}
.projectreviewbanner>div{display:flex;gap:8px;align-items:center;min-width:0}
.projectreviewbanner b{font-size:11.5px}
.projectreviewbanner span{font-size:10.5px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.projectreviewbanner a{font-size:10.5px;font-weight:700;white-space:nowrap}
.filepreviewframe{height:calc(100vh - 130px);background:#fff;border:1px solid #dfe3e7;border-radius:10px;overflow:hidden}
.filepreviewframe iframe{width:100%;height:100%;border:0}
.filepreviewimage{display:grid;place-items:center;background:#fff;border:1px solid #dfe3e7;border-radius:10px;padding:12px;min-height:65vh}
.filepreviewimage img{max-width:100%;height:auto}
.extractedtext{white-space:pre-wrap;word-break:break-word;font:12px/1.7 "Malgun Gothic","Noto Sans KR",sans-serif;margin:0;max-height:70vh;overflow:auto;background:#fafbfc;border-radius:9px;padding:12px}
@media(max-width:800px){
  .naesinworkspace,.naesinworkspace.lower{grid-template-columns:1fr}
  .pageactions{justify-content:flex-start}
  .naesinfile{align-items:flex-start;flex-direction:column}
  .fileactions{width:100%;flex-wrap:wrap}
  .addfiles{grid-template-columns:1fr}
  .naesingenopts{grid-template-columns:1fr 1fr}
  .projectquestions{grid-template-columns:1fr}
  .projectreviewbanner{align-items:flex-start}
  .projectreviewbanner>div{align-items:flex-start;flex-direction:column;gap:2px}
  .projectreviewbanner span{white-space:normal}
}
.historyprojects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.historyprojects a{display:block;border:1px solid #e5e8ec;border-radius:9px;padding:9px 10px}
.historyprojects b{font-size:11.5px}
.historyprojects span{display:block;font-size:9.5px;color:#858c95;margin-top:3px}
.historyprojects p{font-size:10.5px;color:#666;margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.historyprojects{grid-template-columns:1fr}}
/* v1.2.3 workflow split + area blueprint generator */
.pipelinesub{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin:0 0 12px;
  padding:5px;
  border:1px solid #e4e8ed;
  background:#f7f8fa;
  border-radius:10px;
}
.pipelinesub a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:31px;
  padding:0 10px;
  border-radius:7px;
  font-size:11px;
  font-weight:700;
  color:#69717b;
}
.pipelinesub a.on{
  background:#fff;
  color:#20252b;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.pipelinesub b{
  font-size:9.5px;
  background:#e9edf2;
  border-radius:999px;
  padding:2px 5px;
}
.areaworkgrid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  margin-bottom:14px;
}
.areaSource{
  min-height:360px!important;
  font-size:12px!important;
  line-height:1.7!important;
}
.blueprintlist{
  display:grid;
  gap:7px;
}
.blueprintlist>div{
  position:relative;
  border:1px solid #e4e8ed;
  border-radius:9px;
  padding:9px 10px 9px 39px;
  background:#fbfcfd;
}
.blueprintlist>div>span{
  position:absolute;
  left:10px;
  top:10px;
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:6px;
  background:#edf1f5;
  font-size:10px;
  font-weight:800;
}
.blueprintlist b{
  font-size:11px;
}
.blueprintlist p{
  margin:3px 0 0;
  font-size:11px;
  line-height:1.45;
}
.blueprintlist em{
  display:inline-block;
  margin-top:5px;
  padding:2px 5px;
  border-radius:5px;
  background:#fff0d9;
  color:#8a5d15;
  font-size:9px;
  font-style:normal;
}
.areasets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.areasetcard{
  border:1px solid #e4e8ed;
  border-radius:9px;
  padding:9px 10px;
}
.areasetcard>b{
  font-size:12px;
}
.setcounts{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:7px;
}
.setcounts span{
  padding:3px 6px;
  border-radius:999px;
  background:#f0f3f6;
  font-size:9.5px;
  color:#68717b;
}
.sharedsource{
  margin-bottom:12px;
}
.sharedsource pre{
  margin:0;
  max-height:440px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  font:12px/1.75 "Malgun Gothic","Noto Sans KR",sans-serif;
  background:#fafbfc;
  border:1px solid #e5e9ed;
  border-radius:9px;
  padding:12px;
}
@media(max-width:800px){
  .areaworkgrid{grid-template-columns:1fr}
  .areasets{grid-template-columns:1fr}
  .areaSource{min-height:260px!important}
}
/* v1.2.4 editable area blueprints */
.blueprintstate{margin:-2px 0 8px}
.custombadge,.defaultbadge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 7px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:750;
}
.custombadge{background:#e7f0ff;color:#315d96}
.defaultbadge{background:#eef1f4;color:#717983}
.blueprintbadges{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.blueprintbadges em{
  margin:0!important;
}
.requiredbadge{background:#e7f4ec!important;color:#2d6b43!important}
.optionalbadge{background:#eee9fb!important;color:#65508d!important}
.optionalpick{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:7px;
  font-size:9.5px;
  font-weight:650;
  color:#626a74;
}
.optionalpick input{width:auto;margin:0}
.disabledslot{opacity:.52}
.blueprinteditor{position:relative}
.blueprintselects{
  display:flex;
  align-items:end;
  gap:7px;
  flex-wrap:wrap;
  padding-bottom:11px;
  margin-bottom:11px;
  border-bottom:1px solid #edf0f3;
}
.blueprintselects label{
  min-width:150px;
  font-size:10.5px;
  color:#727983;
}
.blueprintselects select{margin-top:4px}
.blueprintlegend{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.blueprintlegend span{
  background:#f5f7f9;
  border-radius:7px;
  padding:5px 7px;
  font-size:9.5px;
  color:#6e7680;
}
.blueprintlegend b{color:#30353b}
.blueprintrows{display:grid;gap:8px}
.blueprinteditrow{
  position:relative;
  display:grid;
  grid-template-columns:160px minmax(0,1fr) auto;
  gap:9px;
  align-items:start;
  padding:10px 10px 10px;
  border:1px solid #e2e6ea;
  border-radius:10px;
  background:#fbfcfd;
}
.blueprinteditrow label{
  font-size:9.5px;
  color:#737b84;
}
.blueprinteditrow input,
.blueprinteditrow textarea{
  margin-top:4px;
}
.blueprinteditrow textarea{
  min-height:64px!important;
  resize:vertical;
  font-size:11.5px;
  line-height:1.45;
}
.rowflags{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding-top:20px;
  white-space:nowrap;
}
.rowflags label{
  display:flex;
  gap:5px;
  align-items:center;
  font-size:10px;
  color:#4f565f;
}
.rowflags input{width:auto;margin:0}
.rowtools{
  position:absolute;
  top:7px;
  right:7px;
  display:flex;
  gap:3px;
}
.rowtools button{
  width:auto!important;
  min-width:28px!important;
  height:25px!important;
  margin:0!important;
  padding:0 6px!important;
  border-radius:6px!important;
  background:#eef1f4!important;
  color:#555d66!important;
  font-size:9.5px!important;
  line-height:25px!important;
}
.rowtools .removerow{
  background:#fae7e7!important;
  color:#8f3030!important;
}
.blueprintactions{
  display:flex;
  gap:7px;
  margin-top:10px;
}
.blueprintactions button{width:auto!important;margin:0!important}
.blueprintreset{
  position:absolute;
  right:12px;
  bottom:12px;
  margin:0;
}
.blueprintreset button{width:auto!important;margin:0!important}
@media(max-width:800px){
  .blueprinteditrow{grid-template-columns:1fr}
  .rowflags{padding-top:0;flex-direction:row;flex-wrap:wrap}
  .blueprintreset{position:static;margin-top:8px}
  .blueprintactions{padding-right:0}
}
/* v1.2.5 area UX: larger fixed prompts, per-prompt counts, accepted preview/print */
.blueprintlist p{font-size:14px!important;line-height:1.6!important;font-weight:650;color:#252a31}
.blueprinteditrow .stemInput{font-size:14px!important;line-height:1.55!important;font-weight:600;min-height:78px!important}
.slotcountpick{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px!important;font-weight:750!important;color:#3e4650!important}
.slotcountpick input{width:62px!important;height:31px!important;margin:0!important;text-align:center;font-weight:800}
.countflag{display:flex!important;align-items:center!important;gap:6px!important;font-weight:700!important;color:#3e4650!important}
.countflag input{width:58px!important;height:29px!important;margin:0!important;text-align:center!important;font-weight:800!important}
.areaAcceptedStem{font-size:13.5px!important;line-height:1.5!important}
.previewSharedSource{white-space:pre-wrap;word-break:break-word;background:#f7f8fa;border:1px solid #dfe4e9;border-radius:10px;padding:12px 13px;margin-bottom:16px;font-size:12.5px;line-height:1.75}
.previewSourceTitle{font-size:10.5px;font-weight:800;color:#626b75;margin-bottom:7px;padding-bottom:6px;border-bottom:1px solid #e4e8ec}
/* v1.2.6 consistency fixes */
.projectqlink{
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.projectqlink:hover{
  transform:translateY(-1px);
  border-color:#cfd7e2;
  box-shadow:0 4px 12px rgba(28,39,52,.08);
}
.projectqlink:focus-visible{
  outline:2px solid #9db7d6;
  outline-offset:2px;
}
.previewProjectMeta{
  margin:0 0 12px;
  padding:9px 10px;
  border:1px solid #dfe5eb;
  border-radius:9px;
  background:#f7f9fb;
}
.previewProjectMeta b{
  display:block;
  font-size:12px;
  margin-bottom:2px;
}
.previewProjectMeta span{
  font-size:10.5px;
  color:#6e7781;
}
.previewProjectMeta p{
  margin:5px 0 0;
  font-size:10.5px;
  line-height:1.45;
  color:#59616a;
}
.inspectquestion{
  max-width:920px;
  margin-left:auto;
  margin-right:auto;
}
.revisionselectable{
  position:relative;
}
.revisionselectable>input[type="checkbox"]{
  flex:0 0 auto;
  margin-top:4px;
}
/* v1.2.7 area route hardening */
.areasetlink{
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}
.areasetlink:hover{
  transform:translateY(-1px);
  border-color:#cfd7e2;
  box-shadow:0 4px 12px rgba(28,39,52,.08);
}
/* v1.2.8 all-question search */
.searchhead{align-items:center}
.searchtotal{
  min-width:92px;
  padding:8px 10px;
  border:1px solid #e0e5ea;
  border-radius:9px;
  background:#fff;
  text-align:center;
  font-size:10px;
  color:#6d7580;
}
.searchtotal b{font-size:15px;color:#20252b}
.searchfiltercard{padding:11px 12px}
.questionfilters{
  display:flex;
  align-items:end;
  gap:8px;
  flex-wrap:wrap;
}
.questionfilters label{
  min-width:150px;
  flex:0 1 180px;
  font-size:9.5px;
  color:#747c86;
}
.questionfilters label span{display:block;margin-bottom:4px;font-weight:700}
.questionfilters select{width:100%}
.questionfilters button,.questionfilters .linkbtn{width:auto!important;margin:0!important}
.searchresults{padding:11px 12px}
.searchquestionlist{display:grid;gap:6px}
.searchquestionrow{
  display:block;
  padding:9px 10px;
  border:1px solid #e1e5e9;
  border-radius:9px;
  color:inherit;
  text-decoration:none;
  background:#fff;
  transition:background .1s ease,border-color .1s ease,transform .1s ease;
}
.searchquestionrow:hover{
  background:#fafbfc;
  border-color:#cbd3dc;
  transform:translateY(-1px);
}
.searchqtop{
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:5px;
}
.searchqid{font-size:9.5px;color:#8a929b}
.pipelinepill,.statuspill{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 6px;
  border-radius:999px;
  font-size:8.8px;
  font-weight:750;
}
.pipelinepill.single{background:#edf1f5;color:#4d5965}
.pipelinepill.area{background:#e8f0ff;color:#3d6398}
.pipelinepill.naesin{background:#e9f5ee;color:#3d7053}
.statuspill{background:#f3f3f3;color:#686f77}
.searchqstem{
  font-size:12.5px;
  line-height:1.45;
  font-weight:750;
  color:#22272d;
}
.searchqmeta{
  display:flex;
  align-items:center;
  gap:5px 9px;
  flex-wrap:wrap;
  margin-top:6px;
  font-size:9.5px;
  color:#747c85;
}
.searchqmeta .context{
  padding-left:8px;
  border-left:1px solid #dfe3e7;
  color:#565f69;
}
.searchpager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
  font-size:10px;
  color:#6c747d;
}
@media(max-width:700px){
  .questionfilters label{min-width:calc(50% - 5px);flex:1 1 calc(50% - 5px)}
  .searchqstem{font-size:12px}
}
/* v1.3.0 search selection print */
.searchprintbar{
  display:flex;
  align-items:end;
  gap:7px;
  flex-wrap:wrap;
  padding:8px;
  margin-bottom:9px;
  border:1px solid #e4e8ec;
  border-radius:9px;
  background:#fafbfc;
}
.searchselectall{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}
.searchselectall input{width:auto;margin:0}
.searchtitle{
  min-width:230px;
  flex:1 1 300px;
  font-size:9.5px;
  color:#747c86;
}
.searchtitle span{display:block;margin-bottom:4px;font-weight:700}
.searchtitle input{width:100%}
.searchprintbar button{
  width:auto!important;
  margin:0!important;
}
.searchquestionitem{
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  gap:4px;
  align-items:start;
}
.searchquestionitem>.searchCheck{
  width:auto;
  margin:13px 0 0 5px;
}
/* v1.3.1 search print-order editor */
.printorderpanel{
  margin:0 0 10px;
  border:1px solid #dde3e9;
  border-radius:10px;
  background:#f8fafc;
  padding:9px;
}
.printorderhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:7px;
}
.printorderhead>div{
  min-width:0;
}
.printorderhead b{
  display:block;
  font-size:11px;
}
.printorderhead span{
  font-size:9.3px;
  color:#727b85;
}
#printOrderCount{
  white-space:nowrap;
  font-weight:750;
  color:#47515b;
}
.printorderlist{
  display:grid;
  gap:5px;
}
.printorderitem{
  display:grid;
  grid-template-columns:26px 28px minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
  min-height:44px;
  padding:6px 7px;
  border:1px solid #e1e6eb;
  border-radius:8px;
  background:#fff;
  cursor:grab;
}
.printorderitem.dragging{
  opacity:.45;
}
.draghandle{
  font-size:15px;
  color:#8a939d;
  text-align:center;
  user-select:none;
}
.ordernum{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#edf1f5;
  font-size:9.5px;
  font-weight:800;
  color:#505a64;
}
.printordertext{
  min-width:0;
}
.printordertext b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10.5px;
  color:#2c3238;
}
.printordertext small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:2px;
  font-size:8.8px;
  color:#7a838c;
}
.orderbuttons{
  display:flex;
  gap:3px;
}
.orderbuttons button{
  width:28px!important;
  min-width:28px!important;
  height:27px!important;
  margin:0!important;
  padding:0!important;
  border-radius:6px!important;
  background:#eef1f4!important;
  color:#4e5862!important;
  font-size:11px!important;
}
.orderbuttons button:disabled{
  opacity:.35;
}
@media(max-width:700px){
  .printorderhead{align-items:flex-start}
  .printorderitem{grid-template-columns:22px 24px minmax(0,1fr) auto}
  .printordertext b{font-size:10px}
}
/* v1.3.3 control-size cleanup */
/* Browser-native file control: keep both button and filename compact. */
.uploadfile{
  font-size:11px!important;
  line-height:1.2!important;
  padding:6px 7px!important;
  min-height:34px!important;
}
.uploadfile::file-selector-button{
  font:700 11.5px/1.2 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",Arial,sans-serif;
  padding:6px 9px;
  margin:-1px 8px -1px -1px;
  border:0;
  border-right:1px solid #d7dbe0;
  background:#f2f4f7;
  color:#3f464e;
  cursor:pointer;
}
/* Dropdown values were inheriting the tiny label font. Keep labels small, values readable. */
.source select,
.metaedit select,
.field select,
.questionfilters select{
  font-size:12.5px!important;
  line-height:1.25!important;
  min-height:38px!important;
}
/* Search filters: dropdowns and search/reset actions should be the same visual height. */
.questionfilters label{
  font-size:10.5px!important;
}
.questionfilters select{
  height:38px!important;
  padding:7px 30px 7px 10px!important;
}
.questionfilters button,
.questionfilters .linkbtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 13px!important;
  margin:0!important;
  font-size:12.5px!important;
  line-height:1!important;
  border-radius:9px!important;
}
/* v1.3.4 layout cleanup: centered brand + full-width request/trash lists */
.top{
  position:sticky;
}
.brand{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  text-align:center;
  white-space:nowrap;
  line-height:1.08;
  pointer-events:none;
}
.brand b{
  font-size:17px!important;
  line-height:1.08;
}
.brand span{
  display:block!important;
  margin-left:0!important;
  margin-top:2px;
  color:#8a9099;
  font-size:10.5px!important;
  line-height:1.1;
}
.topright{
  margin-left:auto;
  position:relative;
  z-index:2;
}
/* 내신요청 / 휴지통은 어중간한 2열 카드 대신 가로폭을 전부 쓰는 1열 리스트 */
.naesinrequestlist,
.trashgrid{
  grid-template-columns:1fr!important;
  width:100%;
}
.naesinrequestlist .requestcard{
  width:100%;
  min-width:0;
}
.naesinrequestlist .requestcard b{
  font-size:13.5px;
}
.naesinrequestlist .requestcard p{
  max-width:none;
}
/* 휴지통 카드: 본문은 넓게, 액션은 오른쪽 */
.trashcard{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  width:100%;
}
.trashbody{
  min-width:0;
}
.trashbody>b{
  display:block;
  font-size:14px;
  line-height:1.5;
}
.trashbody>small{
  display:block;
  margin-top:6px;
  color:#8a9199;
  font-size:10.5px;
}
.trashactions{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.trashactions form{
  margin:0;
}
.trashactions button{
  width:auto!important;
  margin:0!important;
  white-space:nowrap;
  padding:8px 10px!important;
  font-size:11px!important;
}
.trashactions .restorebtn{
  background:#eef2f7;
  color:#2f3740;
}
.trashactions .trashpreviewbtn{
  background:#222;
  color:#fff;
}
.trashviewlabel{
  display:block;
  text-align:center;
  margin:-7px 0 8px;
  font-size:11px;
}
@media(max-width:800px){
  .brand b{font-size:15px!important}
  .brand span{display:block!important;font-size:9.5px!important}
  .topright a{font-size:11px}
  .trashcard{
    grid-template-columns:1fr;
    align-items:start;
  }
  .trashactions{
    justify-content:flex-end;
    width:100%;
  }
}
/* v1.3.5 structural QA fixes */
.heldgrid{
  grid-template-columns:1fr!important;
}
.heldcard{
  position:relative;
  padding-right:125px!important;
}
.heldcard .heldopen{
  position:absolute;
  right:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:10.5px;
  font-weight:750;
  color:#5f6872;
  background:#eef2f7;
  border-radius:999px;
  padding:6px 9px;
}
.trashrestorestate{
  font-size:9.5px;
  color:#717983;
  white-space:nowrap;
}
.trashSharedSource{
  margin:0 0 16px;
  padding:12px 13px;
  border:1px solid #dfe4e8;
  border-radius:10px;
  background:#fafbfc;
}
.trashSharedSource>b{
  display:block;
  margin-bottom:7px;
  font-size:11px;
  color:#555e67;
}
.trashSharedSource>div{
  white-space:pre-wrap;
  line-height:1.65;
  font-size:13px;
}
@media(max-width:800px){
  .heldcard{
    padding-right:14px!important;
    padding-bottom:42px!important;
  }
  .heldcard .heldopen{
    top:auto;
    bottom:9px;
    transform:none;
  }
  .trashrestorestate{
    margin-right:auto;
  }
}
/* v1.3.5 five-state naesin summary */
.projectcounts{grid-template-columns:repeat(5,1fr)}
@media(max-width:800px){.projectcounts{grid-template-columns:repeat(3,1fr)}}
/* v1.3.7 search controls + acceptance difficulty confirmation */
.searchprintsetup{
  margin-bottom:8px;
}
.searchbatchbar{
  margin-bottom:10px;
}
.difficultyreview{
  display:none;
  position:fixed;
  inset:0;
  z-index:180;
}
.difficultyreview.open{
  display:block;
}
.difficultyreviewback{
  position:absolute;
  inset:0;
  background:rgba(18,22,28,.58);
  backdrop-filter:blur(2px);
}
.difficultyreviewbox{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(430px,calc(100vw - 28px));
  background:#fff;
  border:1px solid #e1e5e9;
  border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  padding:17px;
}
.difficultyreviewhead{
  margin-bottom:14px;
}
.difficultyreviewhead b{
  display:block;
  font-size:16px;
  margin-bottom:4px;
}
.difficultyreviewhead span{
  display:block;
  color:#777f88;
  font-size:11.5px;
}
.difficultychoices{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
}
.difficultychoices label{
  display:block;
  margin:0;
}
.difficultychoices input{
  display:none;
}
.difficultychoices span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  border:1px solid #d9dee3;
  border-radius:10px;
  background:#fff;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.difficultychoices input:checked+span{
  border-color:#222;
  background:#222;
  color:#fff;
}
.difficultyreviewactions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:8px;
  margin-top:14px;
}
.difficultyreviewactions button{
  margin:0!important;
}
@media(max-width:600px){
  .difficultyreviewbox{
    padding:14px;
  }
  .difficultychoices{
    grid-template-columns:repeat(2,1fr);
  }
}
/* v1.3.8 naesin request-link compact text */
.naesinapplylink{
  font-size:10.5px!important;
  padding:7px 9px!important;
  line-height:1.1!important;
}
/* =========================================================
   v1.3.9 LevelFit UI system
   One typography / control / color system across the admin UI.
   Brand palette sampled from the LevelFit logo:
   deep navy + vivid blue + cyan + mint.
   ========================================================= */
:root{
  --lf-navy:#071B4A;
  --lf-navy-2:#102A5C;
  --lf-blue:#0877F9;
  --lf-blue-hover:#0568DD;
  --lf-cyan:#15AEEB;
  --lf-mint:#21C99A;

  --lf-bg:#F5F8FC;
  --lf-surface:#FFFFFF;
  --lf-surface-soft:#F8FAFD;
  --lf-border:#DCE5EF;
  --lf-border-strong:#CAD7E6;

  --lf-text:#17233A;
  --lf-text-2:#4F5E72;
  --lf-muted:#7C8999;

  --lf-green-bg:#E7F8F2;
  --lf-green-text:#137B5D;
  --lf-amber-bg:#FFF3D9;
  --lf-amber-text:#8B651B;
  --lf-red-bg:#FDEBEC;
  --lf-red-text:#A23A45;
  --lf-hold-bg:#EDF3FA;
  --lf-hold-text:#53677F;

  --lf-control-h:36px;
  --lf-control-h-compact:32px;
  --lf-radius:10px;
  --lf-radius-card:14px;
}
/* Base */
html,body{
  background:var(--lf-bg);
}
body{
  color:var(--lf-text);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",Arial,sans-serif;
  font-size:13px;
  line-height:1.5;
}
.wrap{
  max-width:1280px;
  margin:16px auto;
}
/* Header / brand */
.top{
  height:68px!important;
  padding:0 20px;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--lf-border)!important;
}
.brand{
  gap:7px!important;
  line-height:1!important;
}
.brand b{
  margin:0!important;
  color:var(--lf-navy)!important;
  font-size:18px!important;
  font-weight:850!important;
  letter-spacing:-.35px;
  line-height:1!important;
}
.brand span{
  display:block!important;
  margin:0!important;
  color:#748298!important;
  font-size:11px!important;
  font-weight:650;
  letter-spacing:.02em;
  line-height:1!important;
}
.topright{
  gap:9px;
}
.topright a{
  color:var(--lf-text-2)!important;
  font-size:11.5px!important;
  font-weight:650;
}
.notifybtn{
  min-height:var(--lf-control-h-compact)!important;
  height:var(--lf-control-h-compact)!important;
  padding:0 10px!important;
  background:#EEF4FB!important;
  color:#4D6380!important;
  font-size:11px!important;
  border:1px solid #DFE8F2!important;
}
/* Main tabs */
.tabs{
  top:68px!important;
  min-height:45px;
  gap:5px;
  padding-top:6px!important;
  padding-bottom:6px!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid var(--lf-border)!important;
}
.tabs a{
  padding:7px 11px!important;
  border-radius:9px!important;
  color:#5B687A!important;
  font-size:12px!important;
  font-weight:720;
}
.tabs a:hover{
  background:#F1F6FC;
  color:var(--lf-navy)!important;
}
.tabs a.on{
  background:var(--lf-navy)!important;
  color:#fff!important;
}
.tabs em{
  background:#E8F1FC!important;
  color:#315A8D!important;
  font-size:9.5px!important;
}
.tabs a.on em{
  background:#fff!important;
  color:var(--lf-navy)!important;
}
.tabs em.red{
  background:#E75862!important;
  color:#fff!important;
}
/* Cards / panels */
.card,.qcard,.tablewrap,.progressbox{
  background:var(--lf-surface)!important;
  border:1px solid var(--lf-border)!important;
  border-radius:var(--lf-radius-card)!important;
  box-shadow:0 2px 10px rgba(18,46,84,.035);
}
.card{
  padding:14px;
}
.pagehead{
  margin-bottom:14px!important;
}
.pagehead h1{
  margin:0!important;
  color:var(--lf-navy)!important;
  font-size:20px!important;
  font-weight:840!important;
  letter-spacing:-.35px;
}
.pagehead p{
  margin:5px 0 0!important;
  color:var(--lf-muted)!important;
  font-size:11.5px!important;
}
.card>h2,
.sectionhead h2,
.reviewhead h2,
.schoolhead h2{
  color:var(--lf-navy-2);
  font-size:15px!important;
  font-weight:800!important;
  letter-spacing:-.15px;
}
.sectionhead>span,
.reviewhead>span{
  color:var(--lf-muted);
  font-size:10.5px;
}
/* Typography hierarchy */
.qcard b,
.projectq>b,
.requestcard>b{
  color:var(--lf-text);
  font-size:13.5px!important;
  line-height:1.5!important;
}
.qcard p,
.projectq p{
  color:var(--lf-text-2)!important;
  font-size:11.5px!important;
}
.qmeta{
  color:var(--lf-muted)!important;
  font-size:10.5px!important;
}
.stem{
  color:var(--lf-text)!important;
  font-size:16px!important;
  line-height:1.58!important;
}
.explain{
  background:#F8FAFC!important;
  color:var(--lf-text-2)!important;
  font-size:12.5px!important;
}
.help,.batchhelp{
  color:var(--lf-muted)!important;
  font-size:10.5px!important;
}
.field,
.source label,
.metaedit label{
  color:#68768A!important;
  font-size:11px!important;
}
/* Inputs / selects */
input[type=text],
input[type=password],
input:not([type]),
select{
  min-height:var(--lf-control-h)!important;
  height:var(--lf-control-h)!important;
  border:1px solid var(--lf-border-strong)!important;
  border-radius:9px!important;
  padding:0 10px!important;
  background:#fff!important;
  color:var(--lf-text)!important;
  font-size:12px!important;
  line-height:1.2!important;
}
textarea{
  border:1px solid var(--lf-border-strong)!important;
  border-radius:9px!important;
  padding:10px!important;
  background:#fff!important;
  color:var(--lf-text)!important;
  font-size:12px!important;
  line-height:1.55!important;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#8BB9F1!important;
  box-shadow:0 0 0 3px rgba(8,119,249,.09);
}
.source select,
.metaedit select,
.field select,
.questionfilters select{
  min-height:var(--lf-control-h)!important;
  height:var(--lf-control-h)!important;
  font-size:12px!important;
  padding:0 28px 0 10px!important;
}
.uploadfile{
  min-height:34px!important;
  height:34px!important;
  font-size:11px!important;
  border-color:var(--lf-border-strong)!important;
}
.uploadfile::file-selector-button{
  min-height:28px;
  font-size:11px!important;
  font-weight:700;
  background:#EEF4FB!important;
  color:#405873!important;
}
/* Buttons: one scale */
button,
.linkbtn{
  min-height:var(--lf-control-h)!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1!important;
}
button{
  padding:0 12px!important;
}
.linkbtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
}
.primary{
  background:var(--lf-blue)!important;
  color:#fff!important;
}
.primary:hover{
  background:var(--lf-blue-hover)!important;
}
.secondary{
  background:#EDF3FA!important;
  color:#35506F!important;
}
.secondary:hover{
  background:#E4EDF7!important;
}
.compact{
  min-height:var(--lf-control-h-compact)!important;
  height:var(--lf-control-h-compact)!important;
  padding:0 10px!important;
  font-size:11.5px!important;
}
.previewbtn,
.cardactionbtn,
.modalclose,
.sourcehide,
.dangerlite{
  min-height:var(--lf-control-h-compact)!important;
  height:var(--lf-control-h-compact)!important;
  padding:0 10px!important;
  font-size:11.5px!important;
}
/* Status = color. Main actions = blue/navy. */
.accept{
  background:var(--lf-green-bg)!important;
  color:var(--lf-green-text)!important;
}
.accept:hover{
  background:#D9F3E9!important;
}
.edit{
  background:var(--lf-amber-bg)!important;
  color:var(--lf-amber-text)!important;
}
.reject,.danger{
  background:var(--lf-red-bg)!important;
  color:var(--lf-red-text)!important;
}
.hold{
  background:var(--lf-hold-bg)!important;
  color:var(--lf-hold-text)!important;
}
.dangerlite{
  background:#fff!important;
  color:var(--lf-red-text)!important;
  border:1px solid #F1CBD0!important;
}
.structurebtn{
  background:#EAF3FF!important;
  color:#0C62CA!important;
  border:1px solid #CFE2FB!important;
}
.restorebtn{
  background:#EDF3FA!important;
  color:#35506F!important;
}
/* Selection / chips */
.chip span,
.statuschips a{
  border-color:var(--lf-border)!important;
  background:#fff!important;
  color:#536174!important;
  font-size:11.5px!important;
}
.chip input:checked+span,
.statuschips a.on{
  background:#EAF3FF!important;
  color:#0B61C9!important;
  border-color:#BFD9F8!important;
}
.pill,.status{
  background:#EEF3F8!important;
  color:#5A687A!important;
}
.pipelinepill.single{background:#EEF3F8!important;color:#506176!important}
.pipelinepill.area{background:#E8F2FF!important;color:#2369B6!important}
.pipelinepill.naesin{background:#E5F7F1!important;color:#18785C!important}
/* Sub-tabs */
.pipelinesub a{
  font-size:11.5px!important;
  color:#627084!important;
}
.pipelinesub a.on{
  background:#EAF3FF!important;
  color:#0A61CC!important;
  border-color:#C9DFF8!important;
}
/* Sticky output bars */
.batchbar{
  top:113px!important;
  background:rgba(255,255,255,.97)!important;
  border-color:var(--lf-border)!important;
  border-radius:11px!important;
  padding:8px!important;
  gap:6px!important;
}
.batchbar label{
  font-size:11.5px!important;
}
.batchbar button{
  min-height:34px!important;
  height:34px!important;
  padding:0 10px!important;
  font-size:11.5px!important;
}
.printsetup{
  border-color:var(--lf-border)!important;
  background:#fff!important;
}
.printsetup label{
  font-size:11.5px!important;
}
.printorderpanel{
  border-color:#D7E4F2!important;
  background:#F7FAFE!important;
}
.ordernum{
  background:#E7F1FC!important;
  color:#2D6096!important;
}
/* Search */
.searchtotal{
  border-color:var(--lf-border)!important;
  background:#fff!important;
  color:var(--lf-muted)!important;
}
.searchtotal b{
  color:var(--lf-navy)!important;
}
.questionfilters label{
  color:#68768A!important;
  font-size:10.5px!important;
}
.questionfilters select,
.questionfilters button,
.questionfilters .linkbtn{
  min-height:var(--lf-control-h)!important;
  height:var(--lf-control-h)!important;
  font-size:12px!important;
}
.searchquestionrow{
  border-color:var(--lf-border)!important;
}
.searchquestionrow:hover{
  background:#F7FAFE!important;
  border-color:#BDD3ED!important;
}
.searchqstem{
  color:var(--lf-text)!important;
  font-size:13px!important;
}
.searchqmeta{
  color:var(--lf-muted)!important;
  font-size:10px!important;
}
/* Preview / modals */
.modalpanel,
.difficultyreviewbox{
  border-color:var(--lf-border)!important;
}
.modalhead{
  border-bottom-color:var(--lf-border)!important;
}
.previewStem{
  color:var(--lf-navy-2)!important;
  font-size:18px!important;
}
.previewPassage,
.trashSharedSource{
  background:#F7FAFD!important;
  border-color:var(--lf-border)!important;
}
.previewExplain{
  background:#F8FAFC!important;
}
.difficultyreviewhead b{
  color:var(--lf-navy)!important;
}
.difficultychoices span{
  border-color:var(--lf-border-strong)!important;
  color:#526175!important;
}
.difficultychoices input:checked+span{
  border-color:var(--lf-blue)!important;
  background:var(--lf-blue)!important;
  color:#fff!important;
}
/* Loading */
.spinner{
  border-color:#DFEAF5!important;
  border-top-color:var(--lf-blue)!important;
}
.busysteps span.on{
  color:var(--lf-blue)!important;
  border-color:var(--lf-blue)!important;
}
/* Feedback panels */
.reviewmemo{
  background:#FFF9EC!important;
  border-color:#F2E2B9!important;
}
.changesummary{
  background:#EAF8F3!important;
  border-color:#CBEBDD!important;
}
/* "신청 링크 열기": visible, but secondary. */
.naesinapplylink{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:var(--lf-control-h-compact)!important;
  height:var(--lf-control-h-compact)!important;
  padding:0 10px!important;
  border:1px solid #CAE0FA!important;
  background:#EAF3FF!important;
  color:#0D63CC!important;
  font-size:12px!important;
  font-weight:760!important;
  line-height:1!important;
}
/* Full-width utility lists stay calm and consistent */
.naesinrequestlist .requestcard,
.trashcard,
.heldcard{
  border-color:var(--lf-border)!important;
}
.heldcard .heldopen{
  background:#EAF3FF!important;
  color:#2369B6!important;
}
/* Mobile */
@media(max-width:800px){
  .top{
    height:66px!important;
    padding:0 12px!important;
  }
  .brand{
    gap:6px!important;
  }
  .brand b{
    font-size:16px!important;
  }
  .brand span{
    display:block!important;
    font-size:10px!important;
  }
  .tabs{
    top:66px!important;
  }
  .batchbar{
    top:109px!important;
  }
  .pagehead h1{
    font-size:19px!important;
  }
  .card{
    padding:13px;
  }
  .actions button{
    min-height:40px!important;
    height:40px!important;
    font-size:12px!important;
  }
}
/* v1.3.9 specificity cleanup for older component rules */
.batchbar button,
.batchbar .structurebtn{
  background:#EDF3FA!important;
  color:#35506F!important;
  border:1px solid #DFE8F2!important;
  line-height:1!important;
}
.batchbar button:hover,
.batchbar .structurebtn:hover{
  background:#E3EDF8!important;
  color:#24486E!important;
}
.batchbar .structurebtn{
  background:#E7F1FF!important;
  color:#0B62CC!important;
  border-color:#C9DFF8!important;
}
.cardbuttons .previewbtn,
.cardbuttons .secondary{
  background:#EDF3FA!important;
  color:#35506F!important;
}
.cardbuttons .danger{
  background:var(--lf-red-bg)!important;
  color:var(--lf-red-text)!important;
}
.sourceactions .sourcehide{
  background:#F8FAFD!important;
  border:1px dashed #CBD8E6!important;
  color:#68788B!important;
}
.status.new{
  background:#FDEBEC!important;
  color:#A23A45!important;
}
/* v1.4.0 direct manual edit */
.reviewactions{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.directedit{
  background:#E7F1FF!important;
  color:#0B62CC!important;
  border:1px solid #C9DFF8!important;
}
.directedit:hover{
  background:#DDEBFD!important;
}
.manualmemo{
  background:#F4F8FD!important;
  border-color:#D6E3F2!important;
}
.manualmemo b{
  color:var(--lf-navy-2);
}
.manualeditlabel{
  margin:-2px 0 13px;
  padding:9px 11px;
  border:1px solid #CFE0F3;
  border-radius:9px;
  background:#F4F8FD;
  color:#315A84;
  font-size:11.5px;
  font-weight:750;
}
@media(max-width:800px){
  .reviewactions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .reviewactions .accept{
    grid-column:span 2;
  }
}
/* =========================================================
   v1.4.1 tone-down pass
   Keep LevelFit accent, but remove the "everything is blue" feel.
   ========================================================= */
/* Main brand: softer, not ink-black/navy-heavy */
.brand b{
  color:#435166!important;
  font-weight:760!important;
  letter-spacing:-.28px!important;
}
.brand span{
  color:#8A94A3!important;
  font-weight:600!important;
}
/* Active navigation: neutral slate instead of deep navy */
.tabs a.on{
  background:#3E4957!important;
  color:#fff!important;
}
.tabs a:hover{
  background:#F1F3F6!important;
  color:#3F4B59!important;
}
/* Primary actions: muted slate-blue, not saturated electric blue */
.primary{
  background:#506478!important;
  color:#fff!important;
}
.primary:hover{
  background:#435669!important;
}
/* General buttons: neutral gray */
.secondary,
.batchbar button,
.cardbuttons .previewbtn,
.cardbuttons .secondary,
.restorebtn{
  background:#F0F2F5!important;
  color:#465361!important;
  border-color:#DEE3E8!important;
}
.secondary:hover,
.batchbar button:hover{
  background:#E7EAEE!important;
  color:#394653!important;
}
/* Actions that used to be very blue: keep a tiny brand hint only */
.structurebtn,
.batchbar .structurebtn,
.directedit,
.naesinapplylink{
  background:#F2F4F7!important;
  color:#4A5B6C!important;
  border:1px solid #D9E0E7!important;
}
.structurebtn:hover,
.batchbar .structurebtn:hover,
.directedit:hover,
.naesinapplylink:hover{
  background:#E9EDF1!important;
  color:#394A5A!important;
}
/* Sub navigation / selections also go neutral */
.pipelinesub a.on{
  background:#FFFFFF!important;
  color:#3F4B58!important;
  border-color:#D8DEE5!important;
  box-shadow:0 1px 4px rgba(30,42,55,.07)!important;
}
.chip input:checked+span,
.statuschips a.on{
  background:#EEF1F4!important;
  color:#40505F!important;
  border-color:#D2DAE2!important;
}
.ordernum{
  background:#EDF0F3!important;
  color:#566372!important;
}
.heldcard .heldopen{
  background:#F0F2F5!important;
  color:#536170!important;
}
/* Small utility button */
.notifybtn{
  background:#F1F3F5!important;
  color:#5A6674!important;
  border-color:#E0E4E8!important;
}
/* Difficulty selected state uses the same muted action color */
.difficultychoices input:checked+span{
  border-color:#506478!important;
  background:#506478!important;
  color:#fff!important;
}
/* Focus can still carry a restrained LevelFit accent */
input:focus,select:focus,textarea:focus{
  border-color:#9CB6CE!important;
  box-shadow:0 0 0 3px rgba(76,111,143,.08)!important;
}
/* Trash permanent delete */
.permadeletebtn{
  width:auto!important;
  min-height:32px!important;
  height:32px!important;
  margin:0!important;
  padding:0 10px!important;
  border:1px solid #ECCFD3!important;
  border-radius:9px!important;
  background:#FCEDEF!important;
  color:#A33C48!important;
  font-size:11.5px!important;
  font-weight:750!important;
  white-space:nowrap;
}
.permadeletebtn:hover{
  background:#F8DEE2!important;
}
/* v1.4.2 trash multi-select permanent delete */
.trashbatchbar{
  position:static!important;
  top:auto!important;
  justify-content:flex-start;
  margin-bottom:10px!important;
}
.trashbatchbar input{
  width:auto!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
}
.trashselectedcount{
  color:#7A8593;
  font-size:10.5px;
  white-space:nowrap;
}
.trashbatchbar .batchdeletebtn{
  margin-left:auto!important;
}
.trashselectcard{
  grid-template-columns:26px minmax(0,1fr) auto!important;
}
.trashselectcard>.trashCheck{
  width:auto!important;
  min-height:0!important;
  height:auto!important;
  margin:4px 0 0 2px!important;
  align-self:start;
}
@media(max-width:800px){
  .trashselectcard{
    grid-template-columns:26px minmax(0,1fr)!important;
  }
  .trashselectcard>.trashactions{
    grid-column:1 / -1;
  }
  .trashbatchbar{
    flex-wrap:wrap;
  }
  .trashbatchbar .batchdeletebtn{
    margin-left:auto!important;
  }
}
/* v1.4.3 reviewed learning metadata */
.metaedit{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.metaedit select{
  width:100%;
}
.metadatareviewbox{
  width:min(570px,calc(100vw - 28px))!important;
}
.metadatareviewsection{
  margin-top:14px;
}
.metadatareviewsection>b{
  display:block;
  margin-bottom:7px;
  color:#4A5664;
  font-size:11.5px;
  font-weight:800;
}
.metadatagrid{
  display:grid;
  gap:7px;
}
.qtypechoices{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.cognitivechoices{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.metadatagrid label{
  display:block;
  margin:0;
}
.metadatagrid input{
  display:none;
}
.metadatagrid span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  padding:6px 7px;
  border:1px solid #D9DEE3;
  border-radius:9px;
  background:#fff;
  color:#52606E;
  font-size:11.5px;
  font-weight:720;
  text-align:center;
  cursor:pointer;
}
.metadatagrid input:checked+span{
  border-color:#728396!important;
  background:#EEF1F4!important;
  color:#344250!important;
}
@media(max-width:800px){
  .metaedit{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:600px){
  .qtypechoices{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cognitivechoices{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .metadatareviewbox{
    max-height:calc(100vh - 28px);
    overflow:auto;
  }
}
/* v1.4.4 area source generator + width alignment */
.areaSourceField{
  margin-top:10px!important;
}
.areaSourceHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.areaSourceHead>span{
  color:#68768A;
  font-size:11px;
  font-weight:700;
}
.areaSourceHead .secondary{
  margin:0!important;
  width:auto!important;
  flex:0 0 auto;
}
.autoSourceStatus{
  margin-top:6px;
  color:#7A8593;
  font-size:10.5px;
  line-height:1.45;
}
.areaSource{
  width:100%!important;
}
/* Area question view: shared passage and question card must use the same width. */
.areaInspectQuestion{
  max-width:none!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
@media(max-width:600px){
  .areaSourceHead{
    align-items:flex-start;
  }
  .areaSourceHead .secondary{
    min-width:96px;
  }
}
/* v1.5.5 naesin accepted school archive */
.naesinacceptedsummary .stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.acceptedSchoolGroup{
  margin-top:18px;
}
.acceptedGradeGroup{
  margin:0 0 14px;
  padding:10px 12px 12px;
  border:1px solid #e5e9ed;
  border-radius:12px;
  background:#fbfcfd;
}
.acceptedGradeHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.acceptedGradeHead b{
  font-size:12px;
}
.acceptedGradeHead span{
  font-size:10px;
  color:#7c8590;
}
.acceptedProjectCard{
  background:#fff;
}
@media(max-width:800px){
  .naesinacceptedsummary .stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
.mockrule{margin-bottom:14px}
.mockrule b{display:block;margin-bottom:6px}
.mockrule p{margin:0 0 5px;font-weight:700}
.mockrule span{font-size:13px;opacity:.76}
.novelSourcePanel{border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:12px;background:rgba(255,255,255,.025)}
.novelSourceRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.novelSourceRow select{width:100%}
.novelSourceMeta{margin-top:8px;font-size:13px;line-height:1.55;opacity:.84}
@media(max-width:720px){.novelSourceRow{grid-template-columns:1fr}.novelSourceRow .compact{width:100%}}
.novelSourceActions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
@media(max-width:720px){.novelSourceActions{display:grid;grid-template-columns:1fr 1fr}.novelSourceActions .compact{width:100%}}
/* NOVEL4: source controls align to the same left/right edges */
.areaSourceField,
.novelSourcePanel{
  margin-left:0 !important;
  margin-right:0 !important;
  width:100%;
  box-sizing:border-box;
}
.novelSourcePanel{
  padding-left:0 !important;
  padding-right:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  background:transparent !important;
}
.novelSourceRow,
.areaSourceHead,
.novelSourceMeta,
.areaSource,
.autoSourceStatus{
  margin-left:0 !important;
  margin-right:0 !important;
  width:100%;
  box-sizing:border-box;
}
.novelSourceRow select{min-width:0;width:100%}
/* NOVEL5: novel source box must exist only in 문학 > 소설 mode */
.novelSourcePanel[hidden]{display:none !important;}
/* NOVEL7: separate persistent correction action */
.sourceHeadActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* PASSAGE1: persistent passage DB + isolated import queue */
.passagegrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.stackform{display:flex;flex-direction:column;gap:10px}
.passageText{min-height:320px}
.importReviewText{min-height:58vh;white-space:pre-wrap}
.passagejobs,.passagelist{display:flex;flex-direction:column;gap:8px}
.passagejob,.passageitem{border:1px solid var(--line,#d7dce3);border-radius:10px;padding:12px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.passagejob>div:first-child,.passagemain{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.passagemain{flex:1}
.passagemain small{width:100%;opacity:.72}
.passageactions,.passageeditactions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.jobstatus{font-size:12px;padding:3px 7px;border-radius:999px;border:1px solid currentColor}
.joberror{margin:4px 0;font-size:13px}
.passagesearch{display:flex;gap:6px}
.passagesearch input{min-width:260px}
.versionrow{display:grid;grid-template-columns:70px 1fr auto;gap:10px;padding:9px 0;border-bottom:1px solid var(--line,#e5e7eb)}
@media(max-width:900px){.passagegrid{grid-template-columns:1fr}.passageitem,.passagejob{align-items:flex-start;flex-direction:column}.passagesearch input{min-width:0;width:100%}}
/* PASSAGE2: import job controls */
.passagejobactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.passagejobactions form{margin:0}
.dangerlite{border-color:#d6a0a0!important}
.jobstatus.cancelled{opacity:.7}
/* PASSAGE4: inline saved-passage preview */
.passagepreview{margin-top:12px;padding:14px;border:1px solid var(--line,#d9dde5);border-radius:12px;background:rgba(255,255,255,.55)}
.passagepreview[hidden]{display:none!important}
.passagepreviewmeta{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:10px}
.passagepreviewmeta span{font-size:.88rem;opacity:.72}
.passagepreviewtext{white-space:pre-wrap;word-break:break-word;margin:0;max-height:520px;overflow:auto;font:inherit;line-height:1.72}
.passagepreviewactions{display:flex;gap:8px;margin-top:10px}
/* PASSAGE5: library-first layout / filters / soft-delete */
.passageLibraryCard{margin-bottom:16px}
.passagefilters{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(110px,auto)) auto auto;gap:8px;align-items:center;margin:10px 0 14px}
.passagefilters input,.passagefilters select{min-width:0}
.inlineform{display:inline-flex;margin:0}
@media (max-width:900px){
  .passagefilters{grid-template-columns:1fr 1fr}
  .passagefilters input{grid-column:1/-1}
}
/* PASSAGE6: primary workflow navigation + passage difficulty */
.tabs .coretab{
  background:#E7EDF4!important;
  color:#40556B!important;
  border:1px solid #D3DCE6!important;
  box-shadow:0 1px 3px rgba(30,45,60,.06);
  font-weight:800!important;
}
.tabs .coretab:hover{
  background:#DDE6EF!important;
  color:#344A60!important;
}
.tabs .coretab.on{
  background:#506478!important;
  border-color:#506478!important;
  color:#fff!important;
  box-shadow:0 2px 7px rgba(45,65,85,.16);
}
.tabs .coretab.on em{
  background:#fff!important;
  color:#506478!important;
}
.tabs .tabdivider{
  width:1px;
  min-width:1px;
  align-self:stretch;
  margin:2px 2px;
  background:#DDE2E8;
}
.passagefilters{
  grid-template-columns:minmax(220px,1fr) repeat(4,minmax(105px,auto)) auto auto!important;
}
@media(max-width:1050px){
  .passagefilters{
    grid-template-columns:1fr 1fr 1fr!important;
  }
  .passagefilters input{
    grid-column:1/-1;
  }
}
@media(max-width:650px){
  .passagefilters{
    grid-template-columns:1fr 1fr!important;
  }
}
/* PASSAGE6 NAVFIX1: soften core navigation text only */
.tabs .coretab{
  color:#697887!important;
  font-weight:650!important;
}
.tabs .coretab:hover{
  color:#5C6C7C!important;
  font-weight:650!important;
}
.tabs .coretab.on{
  color:rgba(255,255,255,.92)!important;
  font-weight:700!important;
}
/* V1.7.0 AI FOUNDATION1: textbook registry + question code + AI tutor metadata */
.textbookform{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;align-items:end}
.textbookform label{display:flex;flex-direction:column;gap:5px;font-size:.84rem;font-weight:700}
.textbookform .textbooknote{grid-column:span 2}
.textbookform button{height:40px}
.textbookgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px}
.textbookcard{border:1px solid var(--line,#d9dde5);border-radius:12px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:7px}
.textbookcard.inactive{opacity:.55}
.textbookcode,.questioncode{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:.02em}
.textbookcode{font-size:.78rem;opacity:.72}
.questioncode{font-size:.8rem}
.textbooktitle{display:flex;justify-content:space-between;gap:8px}
.textbooktitle span,.textbooksub{font-size:.86rem;opacity:.72}
.textbooknoteview{font-size:.82rem;padding:7px 9px;border-radius:8px;background:rgba(0,0,0,.035)}
.textbookstats{display:flex;gap:7px;flex-wrap:wrap}
.textbookstats span{font-size:.75rem;padding:3px 7px;border-radius:999px;background:rgba(0,0,0,.05)}
.aimetabtn{border-color:#cfd8e5!important;background:#f5f8fc!important}
.aimetabtn.aicomplete{font-weight:800!important}
@media(max-width:850px){.textbookform{grid-template-columns:1fr 1fr}.textbookform .textbooknote{grid-column:1/-1}}
@media(max-width:560px){.textbookform{grid-template-columns:1fr}.textbookform .textbooknote{grid-column:auto}}
/* V1.7.1 TEXTBOOK UNITS1: textbook -> major unit -> subunit hierarchy */
.textbookactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.textbookactions form{margin:0}
.unitaddgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.unitform{display:grid;grid-template-columns:120px minmax(220px,1fr);gap:10px;padding:14px;border:1px solid var(--line,#d9dde5);border-radius:12px;background:rgba(0,0,0,.015)}
.unitform h3{grid-column:1/-1;margin:0 0 2px}
.unitform label{display:flex;flex-direction:column;gap:5px;font-size:.83rem;font-weight:700}
.unitform .unitname{grid-column:span 1}
.unitform button{grid-column:1/-1}
.unitbulk form{display:grid;gap:9px}
.unitbulk textarea{width:100%;min-height:160px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.55}
.unitbulkhelp{font-size:.8rem;opacity:.72}
.unitbulkhelp code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.unittree{display:grid;gap:12px}
.unitgroup{border:1px solid var(--line,#d9dde5);border-radius:12px;overflow:hidden;background:#fff}
.unitgroup.inactive,.unitrow.inactive{opacity:.52}
.unitrow{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 13px}
.unitrow.major{background:rgba(0,0,0,.025)}
.unitrow.minor{border-top:1px solid var(--line,#e6e9ef);padding-left:28px}
.unitcode{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.77rem;font-weight:800;opacity:.7}
.unittitle{display:flex;flex-direction:column;gap:3px}
.unittitle b{font-size:.92rem}
.unittitle span{font-size:.74rem;opacity:.62}
.unitsempty{padding:14px 28px;border-top:1px solid var(--line,#e6e9ef)}
@media(max-width:850px){.unitaddgrid{grid-template-columns:1fr}.unitrow{grid-template-columns:1fr auto}.unitcode{grid-column:1/-1}.unitrow.minor{padding-left:18px}}
@media(max-width:560px){.unitform{grid-template-columns:1fr}.unitform h3,.unitform button{grid-column:auto}.unitrow{grid-template-columns:1fr}.unitrow form{justify-self:start}}
/* V1.7.2 MATERIAL SOURCE1: textbook material/source database */
.pageheadactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fieldhint{display:block;color:var(--muted,#7a8799);font-size:12px;margin-top:5px}
.materialform,.materialeditform{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.materialform label,.materialeditform label{min-width:0}
.materialform .materialsource,.materialeditform .materialsource{grid-column:span 2}
.materialform .materialmemo,.materialeditform .materialmemo{grid-column:span 2}
.materialbulk textarea{width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.materiallist{display:grid;gap:10px}
.materialcard{border:1px solid var(--line,#d9e2ec);border-radius:12px;background:#fff;padding:0 14px}
.materialcard.inactive{opacity:.58}
.materialcard summary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;cursor:pointer;padding:14px 0}
.materialcard summary small{display:block;width:100%;color:var(--muted,#718096);padding-left:0}
.materialcode{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#eef3f8;border-radius:999px;padding:4px 8px;color:#52667a}
.materialeditform{border-top:1px solid var(--line,#e1e8ef);padding:14px 0}
.materialeditform .materialtext{grid-column:span 3}
.materialeditform .materialtext textarea{width:100%;font-family:"Malgun Gothic","Noto Sans KR",sans-serif;line-height:1.55}
.materialeditform .materialtext span{display:flex;justify-content:space-between;gap:8px}
.materialeditform .materialtext small{font-weight:400;color:var(--muted,#718096)}
.materialactions{display:flex;justify-content:flex-end;align-items:center}
.materialtoggle{padding:0 0 14px;display:flex;justify-content:flex-end}
.qsourceattrib{font-size:12px;color:#6f7d8b;margin-top:5px}
@media(max-width:900px){.materialform,.materialeditform{grid-template-columns:1fr 1fr}.materialform .materialsource,.materialform .materialmemo,.materialeditform .materialsource,.materialeditform .materialmemo,.materialeditform .materialtext{grid-column:span 2}}
@media(max-width:640px){.materialform,.materialeditform{grid-template-columns:1fr}.materialform .materialsource,.materialform .materialmemo,.materialeditform .materialsource,.materialeditform .materialmemo,.materialeditform .materialtext{grid-column:auto}.pageheadactions{width:100%}}
.sourcebooklink{border:1px solid var(--line,#d9e2ec);border-radius:9px;padding:7px 9px;margin:8px 0;background:#f8fafc}
.sourcebooklink summary{cursor:pointer;font-weight:700;color:#52667a}
.sourcebooklink label{display:block;margin-top:8px}
/* V1.7.3 REGISTERED MATERIAL1: area/mock registered textbook material picker */
.registeredMaterialPanel{border:1px solid #d9e3ee;background:#f8fbff;border-radius:14px;padding:14px;margin-top:14px}
.materialPickerGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.materialPickerGrid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#26384b}
.materialPickerGrid select{width:100%}
@media (max-width:760px){.materialPickerGrid{grid-template-columns:1fr}}
/* V1.7.4 TEXTBOOK TEXT1: textbook-edition text / activity material sections */
.textbooktextstatus p{margin:0 0 10px;line-height:1.6;color:#42566a}
.textbooktextmeta{display:flex;gap:8px;flex-wrap:wrap}
.textbooktextmeta span{font-size:12px;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#52667a}
.textbooktextform{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.textbooktextform label{min-width:0}
.textbooktextform .textbooktextcheck{display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px 0;font-weight:700}
.textbooktextform .textbooktextarea{grid-column:span 2}
.textbooktextform .textbooktextarea textarea{width:100%;font-family:"Malgun Gothic","Noto Sans KR",sans-serif;line-height:1.65;min-height:240px}
.textbooktextform .textbooktextarea span{display:flex;justify-content:space-between;gap:8px}
.textbooktextform .textbooktextarea small{font-weight:400;color:var(--muted,#718096)}
.textbooktextform .textbooktextnote{grid-column:span 3}
.textbooktextactions{display:flex;justify-content:flex-end;align-items:center}
.textbooktextlist{display:grid;gap:10px}
.textbooktextcard{border:1px solid var(--line,#d9e2ec);border-radius:12px;padding:0 14px;background:#fff}
.textbooktextcard.inactive{opacity:.56}
.textbooktextcard summary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;cursor:pointer;padding:14px 0}
.textbooktextcard summary small{width:100%;font-size:12px;color:var(--muted,#718096)}
.textbooktexttype{font-size:12px;font-weight:800;background:#eaf2fb;color:#45617c;padding:4px 8px;border-radius:999px}
.textbooktextedit{border-top:1px solid var(--line,#e1e8ef);padding:14px 0}
.textbooktexttoggle{display:flex;justify-content:flex-end;padding:0 0 14px}
.materialactions{gap:8px;flex-wrap:wrap}
@media(max-width:900px){.textbooktextform{grid-template-columns:1fr 1fr}.textbooktextform .textbooktextarea,.textbooktextform .textbooktextnote{grid-column:span 2}}
@media(max-width:620px){.textbooktextform{grid-template-columns:1fr}.textbooktextform .textbooktextarea,.textbooktextform .textbooktextnote{grid-column:auto}.textbooktextform .textbooktextarea textarea{min-height:200px}}
/* V1.7.5 FIXED PROMPT CONTROLS1 */
.promptfilterbar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.fixedPromptSummary{margin:7px 0 9px;padding:7px 9px;border-radius:8px;background:#f3f6f8;color:#4f5964;font-size:11px;font-weight:750}
.fixedPromptTitle{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.fixedPromptMeta{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.blueprintlist .promptmetabadge{margin:0!important;background:#e8f1ff!important;color:#315f99!important;font-weight:800}
.blueprintlist .promptmetabadge.subtype{background:#eef6ec!important;color:#4f7650!important}
.promptFilterNote{font-size:10px;color:#7f8790}
.fixedPromptControls{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:8px}
.slotdifficulty{display:flex;align-items:center;gap:6px;font-size:11px!important;font-weight:750!important;color:#3e4650!important}
.slotdifficulty select{width:82px!important;height:31px!important;padding:4px 7px!important;margin:0!important}
.blueprintlist>div.promptOff{opacity:.62;background:#f7f8f9}
.blueprintlist>div.promptOff .slotdifficulty select{background:#f0f1f3;color:#9aa0a6}
.blueprintclassification{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 2px}
.blueprintclassification span{display:inline-block;padding:2px 6px;border-radius:999px;background:#e8f1ff;color:#315f99;font-size:9px;font-weight:800}
.blueprintclassification span+span{background:#eef6ec;color:#4f7650}
@media(max-width:800px){.promptfilterbar{grid-template-columns:1fr!important}.fixedPromptControls{align-items:stretch}.slotdifficulty,.slotcountpick{justify-content:space-between}.slotdifficulty select{width:110px!important}}
/* v1.7.7 review popup feedback + immediate AI requeue */
.reviewfeedbackmodal .modalfeedbackchips{margin-bottom:8px}
.reviewfeedbackmodal textarea{width:100%;min-height:92px;line-height:1.55}
.reviewfeedbackmodal small{display:block;margin-top:6px;color:#7b828b;font-size:10.5px;line-height:1.45}
.reviewmodalactions{grid-template-columns:.8fr 1fr 1.35fr!important}
.reviewmodalactions .edit{background:#fff0cc}
.reviewmodalactions button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.reviewmodalactions{grid-template-columns:1fr!important}.reviewfeedbackmodal textarea{min-height:110px}}
/* v1.7.8 pending-review compact actions + targeted AI feedback */
.reviewactions-v178{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}
.reviewactions-v178 button{
  min-width:0;
  white-space:nowrap;
}
.revisiontargetsection{
  padding-top:2px;
}
.modalfieldhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.modalfieldhead small{
  color:#7c8794;
  font-size:10px;
  font-weight:650;
}
.revisiontargetchips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.revisiontargetchips .chip span{
  min-width:68px;
  justify-content:center;
}
.revisiontargetchips .targetchip:last-child span{
  font-weight:800;
}
@media(max-width:700px){
  .reviewactions-v178{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .reviewactions-v178 .hold{grid-column:1/-1}
  .modalfieldhead{align-items:flex-start;flex-direction:column;gap:3px}
  .revisiontargetchips .chip{flex:1 1 calc(33.333% - 7px)}
  .revisiontargetchips .chip span{width:100%;min-width:0}
}
/* V1.8.0 SOURCE PICKER + PARAGRAPH CLEANUP */
.sourceHeadActions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.areaSource[readonly]{background:rgba(255,255,255,.025);cursor:default}
.passagePickerDialog{width:min(760px,calc(100vw - 32px));max-height:82vh;border:1px solid var(--line,#334155);border-radius:14px;padding:0;background:var(--panel,#111827);color:inherit;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.passagePickerDialog::backdrop{background:rgba(0,0,0,.58)}
.passagePickerHead{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line,#334155)}
.passagePickerHead>div{display:flex;flex-direction:column;gap:3px}
.passagePickerHead small{opacity:.68}
.passagePickerSearch{width:calc(100% - 32px);margin:16px;padding:11px 12px;border-radius:9px}
.passagePickerList{padding:0 16px 16px;display:flex;flex-direction:column;gap:8px;max-height:58vh;overflow:auto}
.passagePickerItem{width:100%;text-align:left;display:grid;gap:4px;padding:12px 13px;border:1px solid var(--line,#334155);border-radius:10px;background:rgba(255,255,255,.025);color:inherit;cursor:pointer}
.passagePickerItem:hover{background:rgba(255,255,255,.07)}
.passagePickerItem span,.passagePickerItem small{font-size:12px;opacity:.75}
.paragraphCleanBar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 12px;border:1px solid var(--line,#334155);border-radius:10px;background:rgba(255,255,255,.025)}
.paragraphCleanBar>div{display:flex;flex-direction:column;gap:3px}
.paragraphCleanBar span{font-size:12px;opacity:.7}
.rawExtractDetails{border:1px solid var(--line,#334155);border-radius:10px;padding:9px 11px;background:rgba(255,255,255,.018)}
.rawExtractDetails summary{cursor:pointer;font-weight:700}
.rawExtractDetails pre{white-space:pre-wrap;word-break:break-word;max-height:340px;overflow:auto;font:inherit;font-size:12px;line-height:1.55;opacity:.8}
@media(max-width:720px){.sourceHeadActions{width:100%}.sourceHeadActions button{flex:1 1 auto}.paragraphCleanBar{align-items:stretch;flex-direction:column}.passagePickerDialog{width:calc(100vw - 18px)}}
/* V1.8.1 UI_COHERENCE1: scoped form rules; explicit dark dialog palette. */
.uiCoherence{--ui-text:var(--lf-text,#17233a);--ui-label:var(--lf-text-2,#4f5e72);--ui-border:var(--lf-border-strong,#cad7e6);min-width:0}
.uiCoherence label,.uiCoherence .materialPickerGrid label{color:var(--ui-label)!important;font-weight:500!important;font-size:12px!important;min-width:0}
.uiCoherence input:not([type=hidden]),.uiCoherence select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:38px!important;min-height:38px!important;padding:0 11px!important;border:1px solid var(--ui-border)!important;border-radius:9px!important;background:#fff!important;color:var(--ui-text)!important;font-size:13px!important;font-weight:400!important;line-height:normal!important}
.uiCoherence textarea{box-sizing:border-box;max-width:100%;border:1px solid var(--ui-border)!important;border-radius:9px!important;color:var(--ui-text)!important;font-size:13px!important;font-weight:400!important}
.uiCoherence input::placeholder,.uiCoherence textarea::placeholder{color:#65758b!important;opacity:1!important}
.uiCoherence .materialPickerGrid select:has(option:checked[value=""]){color:#65758b!important}
.uiCoherence select:disabled,.uiCoherence input:disabled{background:#f1f4f8!important;color:#65758b!important;opacity:1!important;cursor:not-allowed}
.uiCoherence input:focus-visible,.uiCoherence select:focus-visible,.uiCoherence textarea:focus-visible{outline:2px solid #477bba;outline-offset:2px}
.uiCoherence .areaSourceHead{flex-wrap:wrap;gap:10px;min-width:0}
.uiCoherence .areaSourceHead>span,.uiCoherence h2{color:var(--ui-text)!important;font-weight:700!important}
.uiCoherence .areaSourceHead small,.uiCoherence .autoSourceStatus{color:var(--ui-label)!important;font-weight:400!important;line-height:1.6}
.uiCoherence .sourceHeadActions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.uiCoherence .sourceHeadActions button{display:inline-flex;align-items:center;justify-content:center;width:auto!important;max-width:100%;height:38px!important;min-height:38px!important;margin:0!important;padding:0 12px!important;border:1px solid var(--ui-border)!important;border-radius:9px!important;font-size:12px!important;font-weight:500!important;line-height:1.3!important;white-space:normal}
.uiCoherence .sourceHeadActions .primary{background:#243d60!important;color:#fff!important;border-color:#243d60!important}
.uiCoherence .sourceHeadActions .secondary{background:#f0f4f9!important;color:#344b68!important}
.passagePickerDialog,.passagePickerDialog *{box-sizing:border-box}
.passagePickerDialog{color-scheme:dark;width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(740px,82vh);height:min(740px,82dvh);max-height:82dvh;overflow:hidden!important;background:#111827!important;color:#f3f4f6!important;border:1px solid #475569!important;padding:0;border-radius:14px}
.passagePickerDialog[open]{display:flex;flex-direction:column}
.passagePickerDialog::backdrop{background:rgba(0,0,0,.65)}
.passagePickerDialog .passagePickerHead{flex:0 0 auto;align-items:flex-start;gap:12px;padding:16px;border-color:#475569}
.passagePickerDialog .passagePickerHead>div{min-width:0;overflow-wrap:anywhere}
.passagePickerDialog .passagePickerHead b{color:#f8fafc!important;font-size:17px;font-weight:700}
.passagePickerDialog .passagePickerHead small{color:#cbd5e1!important;opacity:1;font-size:12px;line-height:1.6}
.passagePickerDialog .passagePickerSearch{flex:0 0 auto;box-sizing:border-box;width:calc(100% - 32px)!important;min-width:0;max-width:calc(100% - 32px);height:40px!important;margin:14px 16px 8px;padding:0 12px!important;background:#1e293b!important;color:#f8fafc!important;border:1px solid #64748b!important;border-radius:9px;font-size:13px;font-weight:400}
.passagePickerDialog .passagePickerSearch::placeholder{color:#cbd5e1!important;opacity:1}
.passagePickerDialog .passagePickerCount{flex:0 0 auto;margin:0 16px 10px;color:#cbd5e1;font-size:12px}
.passagePickerDialog .passagePickerList{flex:1 1 auto;min-height:0;min-width:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 16px 16px;gap:10px}
.passagePickerDialog .passagePickerItem{display:flex;flex-direction:column;align-items:flex-start;flex:0 0 auto;width:100%;max-width:100%;min-width:0;gap:8px;padding:14px;margin:0;border:1px solid #475569;background:#1e293b;color:#f3f4f6;overflow-wrap:anywhere}
.passagePickerDialog .passagePickerItem h3{margin:0;color:#f8fafc!important;font-size:15px;font-weight:650;line-height:1.5}
.passagePickerDialog .passagePickerMeta{display:flex;flex-wrap:wrap;gap:5px 14px;min-width:0;max-width:100%}
.passagePickerDialog .passagePickerMeta span,.passagePickerDialog .passagePickerSource{color:#cbd5e1!important;font-size:12px;font-weight:400;line-height:1.6;opacity:1;max-width:100%;margin:0;overflow-wrap:anywhere}
.passagePickerDialog .passagePickerImport,.passagePickerDialog .passagePickerHead button{flex:0 0 auto;width:auto!important;max-width:100%;height:38px!important;min-height:38px!important;padding:0 12px!important;margin:0!important;border:1px solid #64748b!important;background:#334155!important;color:#f8fafc!important;font-size:12px!important;font-weight:500!important;line-height:1.3;white-space:normal}
.passagePickerDialog button:hover{background:#475569!important}
.passagePickerDialog button:focus-visible,.passagePickerDialog input:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.passagePickerDialog .empty{color:#cbd5e1!important}
@media(max-width:600px){.passagePickerDialog{width:calc(100vw - 18px);max-width:calc(100vw - 18px);height:88vh;height:88dvh;max-height:88dvh}.uiCoherence .sourceHeadActions{width:100%}.uiCoherence .sourceHeadActions button{flex:1 1 auto}.passagePickerDialog .passagePickerHead b{font-size:15px}}
/* V1.8.2 LAYOUT_PROMPT_MARKERS1 */
html{overflow-y:scroll;scrollbar-gutter:stable}
.top{height:68px!important;padding:0 20px!important;flex-shrink:0}
.brand{position:absolute!important;left:50%!important;top:34px!important;transform:translate(-50%,-50%)!important;flex-direction:column!important;align-items:center!important;white-space:nowrap!important;width:max-content!important;margin:0!important}
.tabs{top:68px!important;min-height:45px;box-sizing:border-box}
.passageLibraryCard .passageitem{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start!important;gap:12px!important;min-width:0}
.passageLibraryCard .passagemain{min-width:0;overflow-wrap:anywhere;align-content:start}
.passageLibraryCard .passageactions{min-width:0;max-width:100%;justify-content:flex-end;gap:7px}
.passageLibraryCard .passageactions a,.passageLibraryCard .passageactions button{width:auto!important;white-space:nowrap!important;flex:0 0 auto;margin:0!important}
.passageLibraryCard .passageactions form{margin:0;flex:0 0 auto}
.passageLibraryCard .passagepreview{grid-column:1/-1;width:100%;min-width:0;max-width:100%;margin:0;overflow:hidden}
.passageLibraryCard .passagepreviewtext{width:100%;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;overflow-x:hidden}
.blueprintlist{min-width:0}
.blueprintlist>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.passageLibraryCard .passageitem{grid-template-columns:minmax(0,1fr)}.passageLibraryCard .passageactions{justify-content:flex-start}.passageLibraryCard .passagepreview{grid-column:1}.topright .backupcount{display:none}}
@media(max-width:600px){.topright a{font-size:10px!important}.top{padding:0 9px!important}}
/* V1.8.3 PASSAGE_CODE1 */
.passageCode{display:inline-flex;align-items:center;width:auto!important;color:#315f99!important;background:#e8f1ff;border-radius:6px;padding:3px 7px;font-size:11px!important;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.passagePickerDialog .passageCode{color:#bfdbfe!important;background:#334155}
.passageEditTools{display:flex;flex-direction:column;gap:8px;margin:10px 0;color:#4f5e72;font-size:12px}
.passageEditTools>div{display:flex;flex-wrap:wrap;gap:8px}
.printsetup .footerTextField{grid-column:1/-1;width:100%}
.printsetup:has(.footerTextField){display:flex;flex-direction:column;align-items:stretch}
#bankPreviewDialog{width:min(920px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(800px,85dvh);padding:0;border:1px solid #c8d3e4;border-radius:12px;overflow:hidden;background:#fff;color:#172b4d;box-sizing:border-box}
#bankPreviewDialog::backdrop{background:rgba(0,0,0,.55)}
.bankPreviewToolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #d5ddeb}
#bankPreviewFrame{width:100%;height:calc(100% - 65px);border:0;display:block}
/* V186 FIX2: bank actions occupy the content column, never the checkbox column. */
.searchquestionitem > .bankQuestionActions{grid-column:2 / -1;min-width:0;width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin:4px 0 12px!important}
.searchquestionitem > .bankQuestionActions > button,
.searchquestionitem > .bankQuestionActions > a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:0;width:auto!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 12px!important;box-sizing:border-box;white-space:nowrap!important;word-break:normal!important;line-height:1.2!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;border:1px solid var(--lf-border,#d5ddeb)!important;border-radius:8px}
.printsetup:has(.footerTextField){gap:10px}
.printsetup:has(.footerTextField) label{color:var(--lf-muted,#697a90)!important;font-weight:500!important;grid-template-columns:100px minmax(0,1fr)}
.printsetup:has(.footerTextField) label span{color:var(--lf-muted,#697a90)!important;font-weight:500!important}
.printsetup:has(.footerTextField) input{color:var(--lf-text,#34445b)!important;font-weight:400!important;font-size:13px!important;height:38px!important;min-height:38px!important;border:1px solid var(--lf-border,#c8d7e9)!important;border-radius:8px;box-sizing:border-box;width:100%;min-width:0}
.printsetup:has(.footerTextField) input::placeholder{color:var(--lf-muted,#7c899b)!important;font-weight:400!important}
@media(max-width:600px){.printsetup:has(.footerTextField) label{grid-template-columns:1fr;gap:5px}.searchquestionitem > .bankQuestionActions{gap:6px}}
/* V186 FIX5: question controls align with the right edge of the card. */
.searchquestionitem{grid-template-columns:26px minmax(0,1fr) auto;gap:0;align-items:center;margin-bottom:12px}
.searchquestionitem > .searchCheck{align-self:start;margin-top:13px}
.searchquestionitem > .searchquestionrow{grid-column:2;grid-row:1;min-width:0;height:100%;box-sizing:border-box;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}
.searchquestionitem > .bankQuestionActions{grid-column:3;grid-row:1;align-self:stretch;width:auto;flex-wrap:nowrap;justify-content:flex-end;gap:6px;padding:12px;margin:0!important;box-sizing:border-box;background:#fff;border:1px solid var(--lf-border,#d5ddeb);border-left:0;border-radius:0 10px 10px 0}
.searchquestionitem > .bankQuestionActions > button,.searchquestionitem > .bankQuestionActions > a{height:34px!important;min-height:34px!important;padding:0 10px!important}
#bankPreviewDialog .bankPreviewToolbar{height:52px;box-sizing:border-box;justify-content:flex-end;padding:8px 12px}
#bankPreviewDialog #bankPreviewClose{flex:0 0 auto;width:auto!important;min-width:60px;height:34px!important;min-height:34px!important;margin:0!important;padding:0 14px!important;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.2}
#bankPreviewDialog #bankPreviewFrame{height:calc(100% - 52px)}
@media(max-width:850px){.searchquestionitem{grid-template-columns:26px minmax(0,1fr)}.searchquestionitem > .searchquestionrow{border-right:1px solid var(--lf-border,#d5ddeb);border-radius:10px}.searchquestionitem > .bankQuestionActions{grid-column:2;grid-row:2;flex-wrap:wrap;justify-content:flex-end;border:0;padding:6px 0 0;background:transparent}}

/* Short plain-text passage excerpts in both source pickers. */
.passagePickerDialog .passagePickerPreview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;white-space:normal;min-width:0;max-width:100%;margin:8px 0 10px;color:#e2e8f0!important;font-size:12px;font-weight:400;line-height:1.65}

#difficultyReviewModal [hidden]{display:none!important}

.searchhead-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.subjective-answer{min-height:42px;margin:10px 0 14px;padding:8px 0;border-bottom:1px solid #8794a8;break-inside:avoid}.subjective-answer span{display:inline-block;width:78%;min-height:25px;border-bottom:1px solid #aab4c1}

@media(max-width:600px){.searchhead-actions{width:100%;justify-content:flex-start}}
