@font-face{font-family:"Pretendard Variable";font-weight:45 920;font-style:normal;font-display:swap;src:url("fonts/PretendardVariable.woff2") format("woff2-variations")}
:root{
  --bg:#F7F9FD;--surface:#FFFFFF;--glass:rgba(255,255,255,.92);
  --border:#E6EBF3;--border-2:#D3DBE8;--soft:#F2F5FA;
  --ink:#111827;--ink-2:#374151;--ink-3:#6B7280;
  --primary:#3B6CFF;--primary-h:#2554F0;--primary-l:#EDF3FF;--primary-b:#C5D6FF;
  --violet:#7C3AED;--violet-l:#F3E8FF;--sky:#0369A1;--sky-l:#E0F2FE;
  --add:#047857;--add-l:#ECFDF5;--del:#B91C1C;--del-l:#FEF2F2;--warn:#BE185D;--warn-l:#FCE7F3;
  --old:#D00000;--new:#0033CC;
  --r-sm:10px;--r:14px;--r-lg:18px;--r-xl:24px;
  --sh-1:0 1px 2px rgb(15 23 42 / .05);
  --sh-2:0 1px 3px rgb(15 23 42 / .04),0 0 0 1px rgb(15 23 42 / .035),0 10px 28px -12px rgb(59 108 255 / .16);
  --sans:"Pretendard Variable",Pretendard,-apple-system,"Malgun Gothic",system-ui,sans-serif;
  --serif:"Noto Serif KR","바탕","Batang",serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14.5px;line-height:1.6;letter-spacing:-.2px;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-h)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--primary-b);outline-offset:2px}
[hidden]{display:none!important}
.top{height:64px;background:var(--glass);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 24px;position:sticky;top:0;z-index:50}
.logo{display:flex;align-items:center;gap:12px;color:var(--ink)}
.logo img{height:26px;width:auto}
.brand{font-weight:800;font-size:16px;letter-spacing:-.5px;line-height:1.2}
.brand small{display:block;font-weight:500;font-size:11.5px;color:var(--ink-3)}
.sp{flex:1}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--ink-2);white-space:nowrap}
.chip .dot{width:7px;height:7px;border-radius:50%;background:#10B981}
.chip.off .dot{background:#94A3B8}
.app{display:flex;min-height:calc(100vh - 64px)}
.side{flex:0 0 228px;padding:18px 14px;border-right:1px solid var(--border);background:#fff}
.side h4{margin:16px 10px 6px;font-size:11px;font-weight:700;color:var(--ink-3);letter-spacing:.6px}
.side h4:first-child{margin-top:0}
.nav a{position:relative;display:flex;align-items:center;gap:10px;padding:9px 14px;border-radius:10px;color:var(--ink-2);font-weight:500;min-height:42px;transition:background .15s,color .15s}
.nav a:hover{background:#F3F7FF;color:var(--primary-h)}
.nav a.on{background:linear-gradient(90deg,#E8F0FF,#F3F7FF);color:var(--primary-h);font-weight:700}
.nav a.on::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:linear-gradient(180deg,#3B6CFF,#7A5CFF)}
.tip{margin:22px 4px 0;padding:12px;border-radius:var(--r);background:linear-gradient(160deg,#F0F6FF,#F6F3FF);border:0;font-size:12.5px;color:var(--ink-2)}
.main{flex:1;min-width:0;padding:26px 30px 72px}
.main:focus{outline:none}
.eyebrow{font-size:12px;font-weight:700;color:var(--primary);margin-bottom:4px}
h1{font-size:24px;font-weight:800;margin:0 0 6px;letter-spacing:-.7px}
h2{font-size:16px;font-weight:700;margin:0 0 12px;letter-spacing:-.3px}
h3{font-size:14px;font-weight:700;margin:0 0 8px}
.lead{color:var(--ink-3);margin:0 0 20px;font-size:15px}
.meta{font-size:12.5px;color:var(--ink-3)}
.card{background:var(--surface);border-radius:var(--r-lg);padding:18px 20px;box-shadow:var(--sh-2)}
.stack>*+*{margin-top:16px}
.grid{display:grid;gap:16px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 15px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--ink);font-size:13.5px;font-weight:600;box-shadow:var(--sh-1)}
.btn:hover{border-color:var(--primary-b);color:var(--primary-h)}
.btn.pri{background:linear-gradient(135deg,#3B6CFF,#6E5BFF);border-color:transparent;color:#fff;box-shadow:0 6px 16px -6px rgb(59 108 255 / .55)}
.btn.pri:hover{background:linear-gradient(135deg,#2E5CF0,#5F4BF5);color:#fff;transform:translateY(-1px)}
.btn.sm{min-height:32px;padding:0 11px;font-size:12.5px;border-radius:10px}
.btn.danger{color:var(--del)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn[disabled]:has(.spinner),.btn[aria-busy="true"]{cursor:wait}
.badge{display:inline-flex;align-items:center;font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--soft);color:var(--ink-2);white-space:nowrap}
.b-pri{background:var(--primary-l);color:var(--primary-h)}.b-add,.b-sky,.b-warn{background:var(--soft);color:var(--ink-2)}.b-del{background:#fff;color:#B42318;box-shadow:inset 0 0 0 1px #F3D0CD}
.field{display:flex;flex-direction:column;gap:6px}
.field>span{font-size:13px;font-weight:700;color:var(--ink)}
input[type=text],input[type=search],input[type=date],select,textarea{width:100%;min-height:40px;border-radius:10px;border:1px solid var(--border-2);background:#fff;padding:8px 12px}
textarea{resize:vertical;line-height:1.7}
input:focus,select:focus,textarea:focus{outline:3px solid var(--primary-l);border-color:var(--primary)}
.hero{border-radius:var(--r-xl);padding:28px 30px;margin-bottom:20px;background:radial-gradient(700px 260px at 92% -10%,#E0E7FF 0%,rgba(224,231,255,0) 65%),#fff;box-shadow:var(--sh-2)}
.hero h1{font-size:28px;line-height:1.3}
.hero h1 em{font-style:normal;color:var(--primary)}
table{border-collapse:separate;border-spacing:0;width:100%}
th,td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--soft)}
th{font-size:12px;font-weight:700;color:var(--ink-3);background:#F8FAFC}
.tlist tbody tr{cursor:pointer}.tlist tbody tr:hover td{background:#FAFBFF}
.empty{padding:28px;text-align:center;color:var(--ink-3)}
.job-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
.tabs{display:flex;gap:4px;padding:5px;border-radius:14px;background:#fff;box-shadow:var(--sh-2);flex-wrap:wrap}
.tabs button{border:0;background:transparent;padding:8px 13px;border-radius:10px;font-size:13px;font-weight:600;color:var(--ink-3);min-height:36px}
.tabs button:hover{color:var(--ink);background:var(--soft)}
.tabs button.on{background:#EDF3FF;color:var(--primary-h);box-shadow:inset 0 -2px 0 var(--primary)}
.saved{font-size:12px;color:var(--ink-3)}
.panes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pane{display:flex;flex-direction:column;min-width:0}
.ph{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px;font-size:13px;font-weight:700;color:var(--ink-2)}
.doc{background:#fff;border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;font-family:var(--serif);font-size:14.5px;line-height:1.9;height:62vh;overflow:auto;white-space:pre-wrap;word-break:keep-all}
textarea.doc{resize:none;white-space:pre-wrap}
.doc.fmt{white-space:normal}
.doc-title{text-align:center;font-family:var(--serif);font-weight:800;font-size:17px;margin:2px 0 16px}
.art{margin:0 0 14px;padding:6px 10px;border-radius:8px;border:1px solid transparent}
.art p{margin:0;white-space:pre-wrap}
.art .l-art{padding-left:1em;text-indent:-1em}
.art .l-art b{font-family:var(--sans);font-weight:800}
.art .l-para{padding-left:1.6em;text-indent:-1em}
.art .l-item{padding-left:2.4em;text-indent:-1.2em}
.art .l-sub{padding-left:3.2em;text-indent:-1.2em}
.art .l-subsub{padding-left:4em;text-indent:-1.2em}
.art .l-cont{padding-left:1em}
.art .badge{float:right;margin-left:6px}
.art.st-changed,.art.st-new,.art.st-deleted{border-left:3px solid var(--primary-b);border-radius:0 8px 8px 0}
.arow.st-changed .lc.o,.arow.st-deleted .lc.o{border-left:3px solid #F7A8BA}
.st-deleted{color:var(--ink-3)}
.mk-old{color:#E11D48;background:#FFE1E7;border-bottom:1px solid #FB7193;border-radius:3px;padding:0 1px}
.mk-new{color:#1D5FE8;background:#D7E8FF;border-bottom:1px solid #6AA0FF;border-radius:3px;padding:0 1px}
[data-art]{cursor:pointer}
[data-art]:hover,[data-art]:focus-visible{border-color:var(--primary-b)}
.art-edit{margin:0 0 14px;padding:8px;border:1px solid var(--primary);border-radius:10px;background:#fff}
.art-edit textarea{font-family:var(--serif);font-size:14.5px;line-height:1.8;margin-bottom:8px}
.reg-doc{height:70vh}
.pane.wide{grid-column:span 2}
.ph2{display:grid;grid-template-columns:1fr 1fr;flex:1;gap:14px}
.pairs{padding:14px 10px}
.lrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px}
.lc{padding:1px 10px;min-width:0}
.lc p{margin:0;white-space:pre-wrap}
.lc .l-art{padding-left:1em;text-indent:-1em}
.lc .l-art b{font-family:var(--sans);font-weight:800}
.lc .l-para{padding-left:1.6em;text-indent:-1em}
.lc .l-item{padding-left:2.4em;text-indent:-1.2em}
.lc .l-sub{padding-left:3.2em;text-indent:-1.2em}
.lc .l-subsub{padding-left:4em;text-indent:-1.2em}
.lc .l-cont{padding-left:1em}
.lc .badge{float:right;margin-left:6px}
.lc.gap{background:repeating-linear-gradient(135deg,transparent 0 7px,#F1F5F9 7px 8px)}
.arow{padding:7px 0;border-bottom:1px solid var(--soft)}
.arow.st-changed .lc.o,.arow.st-deleted .lc.o{background:#FFF7F9}
.arow.st-changed .lc.n,.arow.st-new .lc.n{background:#F5F9FF;border-left:3px solid #8DB4FF}
.arow .lrow.chg .lc.o{background:#FFEEF2}
.arow .lrow.chg .lc.n{background:#EAF3FF}
.arow.st-same .lc.n,.arow.st-deleted .lc.n{border-left:3px solid transparent}
.arow.st-deleted .lc.o{color:var(--ink-3)}
.arow[data-art] .lc.n{cursor:pointer}
.arow[data-art]:hover .lc.n,.arow[data-art]:focus-visible .lc.n{background:#E9FBF5!important}
.seg{display:inline-flex;margin-bottom:10px;box-shadow:none;border:1px solid var(--border);padding:3px}
.seg button{min-height:30px;padding:4px 12px}
.result-list button.hit{display:block;line-height:1.5}
.reg-info{margin:6px 0 12px;font-size:13px;color:var(--ink-2)}
.reg-info summary{cursor:pointer;font-weight:700;color:var(--ink-2)}
.reg-info p{margin:6px 0}
.hit-row{background:var(--primary-l);border-left:3px solid var(--primary)}
.rtab-wrap{overflow-x:auto;margin:6px 0 8px 1em}
.rtab{border-collapse:collapse;width:auto;min-width:60%;font-family:var(--serif);font-size:13px;line-height:1.5}
.rtab td,.rtab th{border:1px solid #CBD5E1;padding:4px 8px;word-break:keep-all;text-align:center;vertical-align:middle;white-space:pre-wrap;background:#fff}
.rtab th{background:#F8FAFC;font-weight:700;color:var(--ink)}
.extra{margin-top:18px;border-top:1px solid var(--border);padding-top:10px;font-family:var(--sans)}
.extra summary{cursor:pointer;font-weight:700;color:var(--ink-2);font-size:13px}
.reg-doc .arow{border-bottom:0;padding:5px 0}
.line-new,.line-new *{color:#1D5FE8}
.lc.line-new{background:#EAF3FF!important}
.line-gone,.line-gone *{color:#E11D48}
.lc.line-gone{background:#FFEEF2!important}
.pairs{padding-top:0}
.col-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--border);font-family:var(--sans);font-size:12px;font-weight:700;color:var(--ink-3)}
.col-head .lc{padding:8px 13px}
.lrow.editing{padding:8px 0;border-bottom:1px solid var(--soft)}
.lrow.editing .art-edit{margin:0}
@media (max-width:1100px){.pane.wide{grid-column:auto}}
.doc p{margin:0 0 8px}
.q-old{color:var(--old)}.q-new{color:var(--new)}
.new-line{color:var(--new)}
u.m-old{color:var(--old);text-decoration-thickness:1px;text-underline-offset:3px}u.m-new{color:var(--new);text-decoration-thickness:1px;text-underline-offset:3px}
.checks{margin-top:16px}
.checks li{margin:4px 0}
.issue{display:flex;gap:8px;align-items:flex-start;padding:6px 0;border-top:1px solid var(--soft)}
.issue:first-child{border-top:0}
.cmp{font-family:var(--serif);font-size:14px;line-height:1.75}
.cmp td{border:1px solid var(--border);white-space:pre-wrap;word-break:keep-all}
.cmp th{border:1px solid var(--border);text-align:center}
.cmp .c-old,.cmp .c-new{width:40%}
.cmp input{min-height:34px;font-family:var(--sans);font-size:13px}
.items .it{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px}
.items textarea{min-height:64px}
.items .it .btn{flex:none}
.note{font-size:12.5px;color:var(--ink-3);margin:-2px 0 10px 2px;display:flex;gap:6px;align-items:center}
.note-tag{font-size:11px;font-weight:700;color:var(--ink-2);background:var(--soft);border-radius:6px;padding:1px 6px}
.memo{background:#fff;border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;font-size:13.5px;color:var(--ink-2);box-shadow:var(--sh-1)}
.memo h3{display:flex;align-items:center;gap:8px;font-size:13px;margin:0 0 6px;color:var(--ink)}
.memo h3::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--primary)}
.memo ul{margin:4px 0 0;padding-left:18px}
.memo li{margin:2px 0}
.memo .sec+.sec{margin-top:10px;padding-top:10px;border-top:1px solid var(--soft)}
.ask-ai{display:flex;gap:8px;align-items:flex-start;margin-top:10px}
.ask-ai textarea{min-height:44px;flex:1}
.hist{font-size:12.5px;color:var(--ink-3);margin:6px 0 0;padding-left:18px}
.result-list{max-height:340px;overflow:auto;border:1px solid var(--border);border-radius:var(--r);margin-top:8px}
.result-list button{display:flex;width:100%;text-align:left;gap:10px;justify-content:space-between;align-items:center;padding:10px 14px;border:0;border-bottom:1px solid var(--soft);background:#fff;min-height:44px}
.result-list button:hover,.result-list button.on{background:var(--primary-l)}
.addenda-preview{font-family:var(--serif);background:#fff;border:1px dashed var(--border-2);border-radius:var(--r);padding:12px 16px;white-space:pre-wrap}
.spinner{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;right:24px;bottom:24px;display:flex;align-items:flex-start;gap:10px;max-width:440px;z-index:1100;padding:12px 18px 12px 12px;background:#fff;color:var(--ink);border:1px solid rgba(30,40,60,.08);border-radius:14px;box-shadow:0 12px 32px rgba(20,30,60,.16),0 2px 6px rgba(20,30,60,.06);font-size:14px;line-height:1.5;word-break:keep-all;animation:toastIn .25s ease-out}
.toast[hidden]{display:none}
.t-ico{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--primary-l);color:var(--primary)}
.t-ico .ico{width:15px;height:15px}
.toast.err .t-ico{background:#FFF0F1;color:#E5484D}
.t-msg{padding-top:2px}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:1100px){.panes{grid-template-columns:1fr}.doc{height:46vh}.g2,.g3{grid-template-columns:1fr}}
@media (max-width:760px){.side{display:none}.main{padding:18px 16px 60px}.top{padding:0 16px}.chip{display:none}}
.rich-wrap{flex:1;border:1px solid var(--border-2);border-radius:10px;background:#fff;min-width:0}
.rich-wrap:focus-within{outline:3px solid var(--primary-l);border-color:var(--primary)}
.rich-bar{display:flex;align-items:center;gap:8px;padding:5px 8px;background:#F6F8FC;border-bottom:1px solid var(--border);border-radius:10px 10px 0 0}
.rich-bar .btn{min-height:28px;min-width:32px;padding:0 8px}
.rich{min-height:56px;padding:8px 12px;line-height:1.7;outline:none;white-space:pre-wrap;word-break:keep-all}
.rich b{font-weight:800;color:var(--ink)}

/* 스크롤 막대: 얇고 둥글게 */
*{scrollbar-width:thin;scrollbar-color:#CBD5E1 transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#D5DBE5;border-radius:999px;border:3px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#AEB8C8;background-clip:content-box}
::-webkit-scrollbar-corner{background:transparent}
.savebar{position:sticky;top:64px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh-1)}
.rich-bar .bold-btn{gap:4px;font-weight:600}
.rich-bar .bold-btn b{font-weight:900}
.field.block{gap:4px;padding-top:6px}
.sec-title{display:flex;align-items:center;gap:8px;font-size:15px!important;font-weight:800!important;color:var(--ink)!important}
.sec-title::before{content:"";width:4px;height:16px;border-radius:2px;background:var(--primary)}
.sec-help{font-size:12px!important;font-weight:500!important;color:var(--ink-3)!important;margin:0 0 6px 12px}
.rich-wrap{border-color:#C9D3E3}
.rich{font-size:15px;color:var(--ink);min-height:60px}
.upper-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;margin-bottom:16px}
.tlist tr.sel td{background:#EDF3FF}
.impact{border:1px solid var(--border);border-radius:var(--r);padding:12px 14px;margin:8px 0;background:#fff}
.impact ul{margin:8px 0 0;padding-left:18px;font-size:13.5px}
.chg-table td{vertical-align:top}
.lawpair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px;font-family:var(--serif);font-size:13px;white-space:pre-wrap}
.lawpair p{margin:4px 0 0}
@media (max-width:1100px){.upper-grid,.lawpair{grid-template-columns:1fr}}
.up-tabs{display:inline-flex;margin-bottom:4px}
.filter{align-items:flex-end;gap:14px}
.filter .field{min-width:180px}
.filter input[type=date]{width:auto}
.btn.chip-on{background:#EDF3FF;border-color:var(--primary-b);color:var(--primary-h)}
.reason{background:#F7F9FD;border:1px solid var(--border);border-radius:var(--r);padding:12px 16px;margin:10px 0 14px;font-size:13.5px;line-height:1.75}
.reason p{margin:4px 0}
.manual{border:1px dashed var(--border-2);border-radius:var(--r);padding:12px 14px;margin:12px 0}
.manual .result-list{max-height:220px}
.lawchg{border-top:1px solid var(--soft);padding:10px 0}
.lawchg .lawpair p{white-space:pre-wrap}
.review-bar{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;padding:10px 12px;background:rgba(255,255,255,.96);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh-2)}
.review-bar input{flex:1;min-width:200px}
.law-alert{margin-bottom:16px}
.alert-item{border:1px solid var(--border);border-radius:var(--r);padding:12px 14px;background:#F7F9FD}
.alert-item.soon{background:#FFF7F9;border-color:#FBD3DC}
.alert-item p{margin:6px 0 0}
.tlist th.num,.tlist td.num{width:56px;white-space:nowrap;text-align:center;color:var(--ink-3);font-variant-numeric:tabular-nums}
.cite-line{margin-top:4px;font-size:12px;color:#1D5FE8}
.pager{justify-content:center;margin-top:12px;gap:6px}
.reason{background:linear-gradient(180deg,#F7FAFF,#FFFFFF);border:1px solid #DCE6F8;border-radius:var(--r-lg);padding:16px 20px;margin:10px 0 16px;font-size:14px;line-height:1.85;color:var(--ink-2)}
.reason-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.reason-head h3{margin:0;font-size:15px;color:var(--ink)}
.reason-tag{font-size:11px;font-weight:700;color:var(--primary-h);background:#E6EEFF;border-radius:6px;padding:2px 7px}
.reason h4{margin:10px 0 2px;font-size:13.5px;color:var(--ink)}
.reason p{margin:6px 0;text-align:justify;word-break:keep-all}
.reason p.ri{padding-left:1.2em;text-indent:-1.2em}
.citing-all{margin:4px 0 14px;border:1px solid var(--border);border-radius:var(--r);padding:10px 14px;background:#fff}
.citing-all summary{cursor:pointer;font-weight:700;font-size:13.5px;color:var(--ink)}
.cite-row{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-top:1px solid var(--soft);font-size:13px}
.cite-row:first-of-type{border-top:0}
.ai-rec{border:1px solid #DCE6F8;border-radius:var(--r);padding:12px 14px;margin:12px 0;background:#F9FBFF}
.rec{display:grid;grid-template-columns:44px 1fr;gap:4px 8px;margin:8px 0 4px;font-size:13.5px}
.rec dt{font-weight:700;color:var(--ink-3)}
.rec dd{margin:0}
.lawpair.fmt{font-family:var(--serif);font-size:14px;line-height:1.85;white-space:normal}
.lp-col{border:1px solid var(--border);border-radius:var(--r);padding:10px 14px;background:#fff}
.lp-col.old{background:#FFFBFC}.lp-col.new{background:#FAFCFF}
.lp-head{font-family:var(--sans);font-size:12px;font-weight:700;color:var(--ink-3);margin-bottom:6px}
.lp-col p{margin:0 0 4px;white-space:pre-wrap}
.lp-col .l-art{padding-left:1em;text-indent:-1em}
.lp-col .l-art b{font-family:var(--sans);font-weight:800}
.lp-col .l-para{padding-left:1.6em;text-indent:-1em}
.lp-col .l-item{padding-left:2.4em;text-indent:-1.2em}
.lp-col .l-sub{padding-left:3.2em;text-indent:-1.2em}
/* 상위법 상세: 섹션 머리(아이콘·제목·건수·설명) */
.dsec{background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:16px 18px;margin:14px 0;box-shadow:var(--sh-1)}
.sh{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.sh-ico{flex:none;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.ico{width:20px;height:20px}
.t-blue{background:#E8F0FF;color:#2554F0}.t-teal{background:#E3F7F3;color:#0F8A74}.t-rose{background:#FFE8EE;color:#D6295A}
.t-violet{background:#F0EBFF;color:#6E4BF2}.t-amber{background:#FFF1DE;color:#C26A09}.t-slate{background:#EEF2F7;color:#475569}
.sh-txt{flex:1;min-width:0}
.sh-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:800;color:var(--ink);letter-spacing:-.3px}
.sh-count{font-size:12px;font-weight:800;color:#fff;background:linear-gradient(135deg,#3B6CFF,#6E5BFF);border-radius:999px;padding:1px 9px}
.sh-hint{font-size:12.5px;color:var(--ink-3);margin-top:2px}
.law-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:4px 2px 6px}
.law-hero h2{font-size:22px;margin:2px 0 8px}
.pill{display:inline-flex;align-items:center;font-size:12.5px;font-weight:600;padding:4px 10px;border-radius:999px;background:#F2F5FA;color:var(--ink-2)}
.reason{background:linear-gradient(180deg,#F7FAFF,#FFFFFF)}
.rp{margin:0;padding-left:22px;font-size:14px;line-height:1.8;color:var(--ink-2)}
.rp li{margin:6px 0;padding-left:4px;word-break:keep-all}
.rp li::marker{color:#2554F0;font-weight:800}
.rp-raw p{font-size:13.5px;line-height:1.8;color:var(--ink-2);margin:4px 0}
.btn.ghost{background:transparent;box-shadow:none}
.cite-card{border:1px solid var(--border);border-radius:var(--r);padding:10px 12px;margin:8px 0;background:#FCFDFF}
.cnum{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:7px;background:#E3F7F3;color:#0F8A74;font-size:12px;font-weight:800;margin-right:8px}
.linkish{border:0;background:none;padding:0;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;text-align:left}
.linkish:hover{color:var(--primary-h);text-decoration:underline;text-underline-offset:3px}
.ref-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ref-chip{border:1px solid #CFE0FF;background:#F3F7FF;color:#1D4ED8;border-radius:8px;padding:3px 9px;font-size:12.5px;cursor:pointer}
.ref-chip:hover{background:#E6EEFF}
.art-peek{margin-top:10px;border:1px solid #DCE6F8;border-radius:12px;padding:10px 14px;background:#fff;font-family:var(--serif);font-size:14px;line-height:1.85}
.peek-head{display:flex;justify-content:space-between;align-items:center;font-family:var(--sans);font-size:13px;margin-bottom:6px}
.art-peek .lc{padding:0}
.others{margin-top:10px}
.others summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink-3)}
.ai-rec{background:linear-gradient(180deg,#FAF8FF,#FFFFFF)}
.manual{border-style:dashed}
/* 규정 전체 보기 서랍 */
.drawer{position:fixed;inset:0;z-index:200}
.drawer-back{position:absolute;inset:0;background:rgba(17,24,39,.32)}
.drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(760px,92vw);background:#fff;box-shadow:-12px 0 32px rgba(17,24,39,.18);display:flex;flex-direction:column}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border)}
.drawer-body{flex:1;height:auto;border:0;border-radius:0;overflow:auto}
.t-sky{background:#E2F3FF;color:#0B7FD1}.t-green{background:#E3F8EC;color:#12865A}
.ai-rec{background:linear-gradient(180deg,#F2F9FF,#FFFFFF);border-color:#CFE6FB}
.ai-rec .impact{background:#fff;border-color:#DCEBFA}
.sh-hint b{color:var(--ink);font-weight:800}
.btn.pri .ico{width:16px;height:16px}
.done-btn{background:#E9F9F1;border-color:#A7E3C6;color:#12865A;font-weight:700}
.made{border-color:#BFE8D3;background:linear-gradient(180deg,#F3FCF7,#FFFFFF)}
.made-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--soft)}
.made-row:first-of-type{border-top:0}
/* 버튼 구분: 실행(작업 만들기)=진한 파랑 채움, AI 다시 찾기=하늘빛 테두리, 삭제=연한 장미, 추가=점선 */
.btn.ai-btn{background:#fff;border:1.5px solid #8CCBF5;color:#0B6FB8;font-weight:700;box-shadow:none}
.btn.ai-btn:hover{background:#EEF8FF;color:#095A96}
.btn.ai-btn .ico{width:15px;height:15px}
.btn.del-btn{background:#fff;border:1px solid #F6C9D3;color:#C23A5B;box-shadow:none;gap:5px}
.btn.del-btn:hover{background:#FFF1F4;color:#A92E4C}
.btn.add-btn{background:#F7FAFF;border:1.5px dashed #A9C4F5;color:#2554F0;box-shadow:none;gap:5px;font-weight:700}
.btn.add-btn:hover{background:#EDF3FF}
.btn .ico{width:15px;height:15px}
/* 안건 문장·부칙 화면 블록 머리 */
.fblock{margin:14px 0 4px;padding-top:12px;border-top:1px solid var(--soft)}
.dsec .fblock:first-of-type{border-top:0;padding-top:0}
.fh{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.fh-ico{width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.fh-ico .ico{width:16px;height:16px}
.fh-title{font-size:14.5px;font-weight:800;color:var(--ink)}
.fh-hint{font-size:12px;color:var(--ink-3);flex-basis:100%;margin-left:36px;margin-top:-4px}
.ai-why{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:#0B6FB8;background:#F2F9FF;border:1px solid #D4EBFB;border-radius:10px;padding:8px 10px}
.ai-why .ico{width:15px;height:15px;flex:none;margin-top:2px}
/* 목록 꼬리표 */
.tag{display:inline-flex;font-size:11px;font-weight:700;border-radius:6px;padding:1px 6px;vertical-align:1px}
.tag-cite{background:#E3F7F3;color:#0F8A74}.tag-watch{background:#FFF1DE;color:#B45F06}.tag-org{background:#EDF3FF;color:#2554F0}
.admrul-text{font-family:var(--serif);font-size:14px;line-height:1.85;max-height:520px;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:10px 14px}
.grid.tight{margin-top:10px;gap:12px}

/* ── 2026-10-22: 작업 화면 탭·칸 머리·단추 구분 ── */
.job-tabs{padding:6px;gap:6px;border:1px solid var(--border)}
.job-tabs button{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;font-size:14px;font-weight:700;color:var(--ink-2);min-height:42px}
.job-tabs button .ico{width:17px;height:17px;opacity:.75}
.job-tabs button:hover{background:#F2F7FF;color:var(--primary-h)}
.job-tabs button.on{background:linear-gradient(135deg,#3B6CFF,#5B8CFF);color:#fff;box-shadow:0 6px 14px -6px rgb(59 108 255 / .6)}
.job-tabs button.on .ico{opacity:1}
.ph-title{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:800;color:var(--ink)}
.ph-title .fh-ico{width:26px;height:26px;border-radius:8px}
.ph-title .ico{width:15px;height:15px}
.col-head .lc{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:800;padding:9px 13px}
.col-head .ico{width:15px;height:15px}
.col-head .ch-old{color:#C23A5B;background:#FFF5F7}
.col-head .ch-new{color:#2554F0;background:#F2F6FF}
/* 대비표 머리 */
.cmp th{font-family:var(--sans);font-size:15px;font-weight:800;padding:11px 8px;letter-spacing:2px}
.cmp th.th-old{background:#FFF1F4;color:#B42B4D}
.cmp th.th-new{background:#EDF3FF;color:#2048D8}
.cmp th.th-why{background:#EEF8F4;color:#0F7A5C;letter-spacing:0}
.cmp{font-size:14.5px}
/* 단추: 돌아가기·AI·작업 만들기·작업 열기 */
.btn.back-btn{background:#F1F5FB;border:1.5px solid #BFCDE3;color:#33415C;font-weight:700}
.btn.back-btn:hover{background:#E6EEFA;border-color:#93AEDB;color:#1E3A8A}
.btn.mk-btn{background:linear-gradient(135deg,#3B6CFF,#6E5BFF);border:0;color:#fff;font-weight:700;box-shadow:0 5px 12px -6px rgb(59 108 255 / .7)}
.btn.mk-btn:hover{color:#fff;filter:brightness(1.07);transform:translateY(-1px)}
.btn.mk-btn.quiet{background:#fff;border:1.5px solid #B9CBFF;color:#2554F0;box-shadow:none}
.btn.open-btn{background:linear-gradient(135deg,#14A06F,#22C08A);border:0;color:#fff;font-weight:700;box-shadow:0 5px 12px -6px rgb(20 160 111 / .7)}
.btn.open-btn:hover{color:#fff;filter:brightness(1.06);transform:translateY(-1px)}
.made-tag{gap:8px}
.made-tag .badge{white-space:nowrap}
.memo h3 .redraft{margin-left:auto;min-height:26px;font-size:12px;color:#0B6FB8}
/* 안건 문장·부칙: 큰 제목과 하위 제목 구분 */
.dsec.major{padding:0 0 16px;overflow:hidden}
.dsec.major>.fblock,.dsec.major>.ai-why{margin-left:18px;margin-right:18px}
.major-head{display:flex;align-items:center;gap:12px;padding:14px 18px;margin-bottom:16px;border-bottom:1px solid var(--border)}
.major-head>.ico{width:24px;height:24px;flex:none}
.major-head .mh-title{font-size:19px;font-weight:900;letter-spacing:-.4px;color:var(--ink)}
.major-head .mh-hint{font-size:12.5px;color:var(--ink-3);margin-top:2px}
.save-note{font-size:13px;font-weight:700;color:#B45309}
.dirty{color:#C23A5B;font-weight:700}
.items .it .rich-wrap{flex:1}
.rich-bar .del-btn{margin-left:auto}
.rich-bar .it-no{font-size:11.5px;font-weight:800;color:#fff;background:#8EA4C8;border-radius:6px;min-width:20px;text-align:center;padding:1px 6px}
.rich-bar .rb-title{font-size:12.5px;color:var(--ink-2);font-weight:600}
textarea.rich-ta{display:block;width:100%;border:0;border-radius:0 0 10px 10px;min-height:72px;outline:none!important;resize:vertical}
.cmp textarea.why{width:100%;min-height:96px;font-family:var(--sans);font-size:13px;line-height:1.6;resize:vertical}

/* ── 별표·서식 편집 ── */
.tab-count{font-size:11px;font-weight:800;background:#FF5C8A;color:#fff;border-radius:999px;padding:0 7px;margin-left:2px}
.apx-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:1000px){.apx-grid{grid-template-columns:1fr}}
.apx-list{position:sticky;top:130px;max-height:calc(100vh - 150px);overflow:auto;margin:0}
.apx-main{margin:0}
.apx-item{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:10px;padding:9px 10px;margin-bottom:4px;cursor:pointer}
.apx-item:hover{background:#F2F7FF}
.apx-item.on{background:#EDF3FF;border-color:#B9CBFF}
.apx-key{font-size:12.5px;font-weight:800;color:#6E4BF2;white-space:nowrap}
.apx-title{flex:1;min-width:0;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apx-new{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--soft)}
.apx-ed-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.apx-ed-head .apx-key{font-size:16px}
.apx-ed-head .del-btn{margin-left:auto}
.apx-block{border:1px solid #C9D3E3;border-radius:10px;margin:12px 0;background:#fff}
.apx-block .rich-bar{flex-wrap:wrap}
.apx-block .rtab-wrap{padding:10px;overflow:auto}
.apx-note{font-size:12px;color:var(--ink-3);margin:8px 10px 0}
.apx-tab td,.apx-tab th{min-width:60px;outline:none;cursor:text}
.apx-tab td:focus,.apx-tab th:focus,.apx-tab .on{background:#FFFBE6;box-shadow:inset 0 0 0 2px #FFB020}
.apx-old{margin-top:14px;border-top:1px dashed var(--border);padding-top:10px}
.apx-old summary{cursor:pointer;font-weight:700;color:var(--ink-2)}
.apx-view{margin-top:22px;border-top:2px solid #E4E9F2;padding-top:12px;font-family:var(--sans)}
.apx-view-head{display:flex;align-items:center;gap:8px;font-weight:800;color:#6E4BF2;margin-bottom:6px}
.apx-view-head .ico{width:18px;height:18px}
.apx-view details.extra{margin:4px 0;border:1px solid var(--border);border-radius:10px;padding:8px 12px;background:#fff}
.apx-view details.extra summary{cursor:pointer;font-size:14px}

/* ── 2026-10-22 오후: 색 정리(황토·갈색 계열 쓰지 않음) ── */
.t-amber{background:#FFE9F3;color:#D6336C}
.save-note{color:#2F6FED;font-weight:700}
.btn.del-btn{background:#fff;border:1px solid #E3E8EF;color:#64748B;box-shadow:none}
.btn.del-btn:hover{background:#FFF1F2;border-color:#FDA4AF;color:#E11D48}
/* 현행·개정안 머리: 배경 없이 글자만 크게 */
.col-head .ch-old,.col-head .ch-new{background:transparent}
.col-head .lc{font-size:15.5px;padding:10px 13px}
.col-head .ch-old{color:#E11D48}
.col-head .ch-new{color:#2554F0}
.col-head .ico{width:17px;height:17px}
/* 조 추가 */
.btn.art-add{min-height:40px;padding:0 18px;font-size:13.5px;border-radius:12px;margin:8px 0 4px}
/* 돌아가기: 진한 남색 채움 */
.btn.back-btn{background:#1E3A8A;border:0;color:#fff;font-weight:700;box-shadow:0 6px 14px -6px rgb(30 58 138 / .6)}
.btn.back-btn:hover{background:#1E40AF;color:#fff;transform:translateY(-1px)}
/* 작업 완료 */
.btn.finish-btn{background:linear-gradient(135deg,#14A06F,#22C08A);border:0;color:#fff;font-weight:700;box-shadow:0 6px 14px -6px rgb(20 160 111 / .6)}
.btn.finish-btn:hover{color:#fff;filter:brightness(1.06)}
.btn.reopen-btn{background:#fff;border:1.5px solid #9ADBC0;color:#12865A;font-weight:700}
/* 안건 문장·부칙 큰 제목 아이콘: 색 채운 원형 배지 */
.major-head{background:#fff}
.major-head .mh-ico{flex:none;width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:#fff}
.major-head .mh-ico .ico{width:22px;height:22px}
.mh-blue{border-top:4px solid #3B6CFF}.mh-blue .mh-ico{background:linear-gradient(135deg,#3B6CFF,#5B8CFF)}
.mh-green{border-top:4px solid #14A06F}.mh-green .mh-ico{background:linear-gradient(135deg,#14A06F,#2BC48F)}
/* 상위법 화면 */
.job-prog{font-size:11.5px;color:#12865A;font-weight:700;margin-top:4px;white-space:nowrap}
.made-row b{font-size:14px}
details.older{margin:0 0 6px 12px}
details.older summary{cursor:pointer;font-size:12.5px;color:var(--ink-3)}
.made-row.sub{padding:5px 0 5px 10px;border-top:1px dashed var(--soft)}
.review-bar .rv-label{display:flex;flex-direction:column;gap:2px;min-width:220px}
.review-bar .rv-label .meta{font-size:11.5px}
/* 작업실 상위법 개정 내용 */
details.up-law{margin-top:10px;border:1px solid #D6E2FF;border-radius:12px;background:#F8FAFF}
details.up-law>summary{cursor:pointer;padding:10px 14px;font-weight:700;color:#2554F0;display:flex;align-items:center;gap:8px}
details.up-law>summary .ico{width:16px;height:16px}
.up-law-body{padding:4px 14px 14px;max-height:520px;overflow:auto}
.ul-sec{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-top:10px}

/* ── 별표·서식 편집 2차(문서처럼) ── */
.apx-grid{grid-template-columns:330px minmax(0,1fr)}
.apx-item{align-items:flex-start}
.apx-item .apx-title{flex-basis:100%;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.apx-bar{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:10px 14px;margin-bottom:12px;box-shadow:var(--sh-1)}
.apx-bar .right{margin-left:auto;gap:10px}
.apx-key.big{font-size:17px}
.toggle{gap:6px;font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer}
.apx-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.apx-cols.one{grid-template-columns:minmax(0,1fr)}
@media (max-width:1200px){.apx-cols{grid-template-columns:minmax(0,1fr)}}
.apx-col{background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-1);overflow:hidden}
.apx-col-head{display:flex;align-items:center;gap:7px;padding:11px 16px;font-size:15px;font-weight:800;border-bottom:1px solid var(--border)}
.apx-col-head .ico{width:17px;height:17px}
.apx-col.old .apx-col-head{color:#E11D48}
.apx-col.new .apx-col-head{color:#2554F0}
.apx-col.old{background:#FCFCFD}
.apx-doc{padding:16px 20px 20px;font-family:var(--serif);font-size:14.5px;line-height:1.85}
.apx-doc-key{font-family:var(--sans);font-size:13px;font-weight:700;color:var(--ink-2)}
.apx-doc-title{text-align:center;font-size:17px;font-weight:800;margin:6px 0 14px;padding:4px 6px;border-radius:6px;min-height:1.6em}
.ab{position:relative;margin:2px 0;padding:3px 8px;border-radius:6px;border-left:3px solid transparent}
.ab.chg,.apx-doc-title.chg{background:#F0F6FF;border-left-color:#3B6CFF}
.ab-text{white-space:pre-wrap;min-height:1.85em}
[contenteditable="true"]{outline:none;cursor:text}
.apx-col.new .ab-text:hover,.apx-col.new .apx-doc-title:hover{background:#F7FAFF}
.apx-col.new .ab-text:focus,.apx-col.new .apx-doc-title:focus{background:#fff;box-shadow:0 0 0 2px #B9CBFF}
.apx-doc-title:empty::before{content:"제목 입력";color:#A0AEC0;font-weight:500}
.ab-text:empty::before{content:"내용 입력";color:#A0AEC0}
.ab-math{text-align:center;padding:6px 8px}
.math-view{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:4px;border:1px solid #DCE3EE;background:#fff;border-radius:8px;padding:8px 14px;font-family:var(--serif);font-size:14.5px;color:var(--ink)}
button.math-view{cursor:pointer}
button.math-view:hover{border-color:#3B6CFF;box-shadow:0 0 0 3px #EDF3FF}
.frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 3px;font-size:.92em;line-height:1.25}
.frac>span:first-child{border-bottom:1px solid currentColor;padding:0 3px}
.frac>span:last-child{padding:0 3px}
.big{font-size:1.7em;font-weight:300;line-height:1;margin:0 2px}
.math-edit{border:1.5px solid #3B6CFF;border-radius:10px;padding:10px;background:#fff;text-align:left;font-family:var(--sans)}
.math-edit input{width:100%;font-size:14px;margin-bottom:8px}
.math-prev{margin-top:10px;text-align:center;font-family:var(--serif)}
.ab-table{padding:4px 0}
.ab-tools{display:none;flex-wrap:wrap;align-items:center;gap:4px;margin:4px 0 6px;padding:6px 8px;background:#F4F7FD;border:1px solid #DCE3EE;border-radius:9px;font-family:var(--sans)}
.ab-table.act .ab-tools,.ab-table:hover .ab-tools{display:flex}
.ab-tools button{border:1px solid #DCE3EE;background:#fff;border-radius:7px;padding:3px 9px;font-size:12px;font-weight:600;color:var(--ink-2);cursor:pointer}
.ab-tools button:hover:not([disabled]){border-color:#3B6CFF;color:#2554F0}
.ab-tools button[disabled]{opacity:.4;cursor:not-allowed}
.ab-tools button.danger:hover{border-color:#FDA4AF;color:#E11D48;background:#FFF1F2}
.ab-tools .sep{width:1px;height:16px;background:#DCE3EE;margin:0 3px}
.ab-tools .tip{font-size:11.5px;color:var(--ink-3);margin-left:6px}
.apx-doc .rtab-wrap{overflow:auto}
.apx-doc .rtab{font-size:13px;line-height:1.55}
.apx-tab td,.apx-tab th{min-width:48px}
.apx-tab td:focus,.apx-tab th:focus,.apx-tab .on{background:#EEF4FF;box-shadow:inset 0 0 0 2px #3B6CFF}
.ab-add{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px;padding-top:12px;border-top:1px dashed var(--border);font-family:var(--sans)}

/* ── 2026-10-22 저녁: 메뉴 카드·바뀐 조 이동·새 작업·내 작업·담당 규정 ── */
.mode-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:6px 0 4px}
.mode-card{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 18px;border-radius:16px;border:1.5px solid #DCE3EE;background:#fff;box-shadow:var(--sh-1);cursor:pointer;transition:all .15s}
.mode-card:hover{border-color:#9DB8FF;transform:translateY(-1px)}
.mode-card .mc-ico{flex:none;width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#EDF3FF;color:#2554F0}
.mode-card .mc-ico .ico{width:24px;height:24px}
.mode-card b{display:block;font-size:17px;font-weight:800;color:var(--ink)}
.mode-card small{display:block;font-size:12.5px;color:var(--ink-3);margin-top:3px}
.mode-card.on{background:linear-gradient(135deg,#3B6CFF,#6E5BFF);border-color:transparent;box-shadow:0 10px 24px -10px rgb(59 108 255 / .7)}
.mode-card.on b,.mode-card.on small{color:#fff}
.mode-card.on .mc-ico{background:rgb(255 255 255 / .2);color:#fff}
@media (max-width:760px){.mode-cards{grid-template-columns:1fr}}
/* 현행 | 개정안 가운데 구분선 */
.pairs .lrow>.lc.o{border-right:1.5px solid #E4E9F2}
.pairs .lrow>.lc.n{padding-left:16px}
.arow.flash{animation:flash 1.6s ease}
@keyframes flash{0%{box-shadow:inset 0 0 0 3px #3B6CFF}100%{box-shadow:inset 0 0 0 0 transparent}}
.chg-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;margin-bottom:8px;background:#fff;border:1px solid var(--border);border-radius:12px}
.chg-nav .cn-title{display:inline-flex;align-items:center;gap:5px;font-weight:800;font-size:13.5px;color:var(--ink);margin-right:4px}
.chg-nav .cn-title .ico{width:16px;height:16px;color:#6E4BF2}
.cn-chips{display:flex;flex-wrap:wrap;gap:4px;margin-left:6px}
.cn-chip{border:1px solid #DCE3EE;background:#fff;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;cursor:pointer;color:#2554F0}
.cn-chip.cn-new{color:#12865A}.cn-chip.cn-deleted{color:#E11D48}
.cn-chip:hover,.cn-chip.on{background:#EDF3FF;border-color:#9DB8FF}
/* 작업 머리 링크·버튼 */
.reg-link{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:700;color:#2554F0;margin-left:6px}
.reg-link .ico{width:14px;height:14px}
.btn.full-btn{background:#fff;border:1.5px solid #9DB8FF;color:#2554F0;font-weight:700}
.btn.full-btn:hover{background:#F2F6FF}
.tag-mine{background:#E3F8EC!important;color:#12865A!important}
/* 새 작업 */
.steps{display:flex;gap:8px;list-style:none;padding:0;margin:8px 0 16px;flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;border-radius:999px;background:#fff;border:1px solid var(--border);font-weight:700;font-size:13.5px;color:var(--ink-3)}
.steps li span{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#EEF2F7;font-size:12px}
.steps li.on{color:#2554F0;border-color:#B9CBFF}.steps li.on span{background:#3B6CFF;color:#fff}
.steps li.done{color:#12865A;border-color:#9ADBC0}.steps li.done span{background:#14A06F;color:#fff}
.nj-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;align-items:start}
@media (max-width:1000px){.nj-grid{grid-template-columns:1fr}}
.nj-grid .dsec{margin:0 0 14px}
.seg{display:inline-flex;gap:4px;padding:4px;background:#F1F5FB;border-radius:12px;margin-bottom:10px}
.seg button{border:0;background:transparent;padding:7px 14px;border-radius:9px;font-weight:700;font-size:13px;color:var(--ink-2);cursor:pointer}
.seg button.on{background:#fff;color:#2554F0;box-shadow:var(--sh-1)}
.seg button[disabled]{opacity:.45;cursor:not-allowed}
.search-box{display:flex;align-items:center;gap:8px;border:1.5px solid #DCE3EE;border-radius:12px;padding:0 12px;background:#fff}
.search-box:focus-within{border-color:#3B6CFF;box-shadow:0 0 0 3px #EDF3FF}
.search-box .ico{width:18px;height:18px;color:#94A3B8}
.search-box input{border:0;outline:none!important;box-shadow:none;flex:1;min-height:44px;font-size:15px}
.nj-list{max-height:480px;overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:6px}
.nj-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:11px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer}
.nj-item:hover{border-color:#9DB8FF;background:#F7FAFF}
.nj-item.on{border-color:#3B6CFF;background:#EDF3FF;box-shadow:inset 3px 0 0 #3B6CFF}
.nj-name{font-weight:700;font-size:14.5px;color:var(--ink)}
.nj-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ink-3)}
.empty-pick{display:flex;align-items:center;gap:10px;color:var(--ink-3);font-weight:600;padding:8px 2px}
.empty-pick .ico{width:22px;height:22px}
.pick-card{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pc-ico{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#14A06F,#2BC48F);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.pc-ico .ico{width:22px;height:22px}
.pc-txt{flex:1;min-width:200px}.pc-txt b{font-size:17px}
.pc-act{display:flex;gap:6px;flex-wrap:wrap}
.hint-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}
.nj-ai{align-items:flex-start;gap:10px;padding:10px 12px;background:#F7FAFF;border-radius:10px}
.nj-go{display:flex;align-items:center;gap:12px}
.btn.big{min-height:52px;padding:0 28px;font-size:16px;border-radius:14px}
/* 내 작업 */
.job-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.job-filter input[type=search]{flex:1;min-width:220px}
.jf-date{display:inline-flex;align-items:center;gap:6px;color:var(--ink-3)}
/* 담당 규정 */
.mr-view{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 12px;background:#F7FAFF;border-radius:10px;margin-bottom:12px}
.mr-view label{gap:6px;font-weight:600;cursor:pointer}
.mr-list{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}
.mr-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 12px;border-radius:999px;background:#EDF3FF;color:#1E3A8A;font-size:13px;font-weight:600}
.mr-chip button{border:0;background:#fff;border-radius:50%;width:20px;height:20px;cursor:pointer;color:#64748B}
.mr-chip button:hover{color:#E11D48}
.math-view{flex-wrap:nowrap;white-space:nowrap;max-width:100%;overflow-x:auto;font-size:13.5px}
.ab-math{overflow-x:auto}

/* ── 2026-10-23: 메뉴 = 머리 아래 남색 띠의 서류철 탭(고른 탭이 화면 바탕과 이어짐) ── */
.top{position:static;height:62px;background:#fff;backdrop-filter:none}
.gear{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;border:1px solid var(--border);font-size:12.5px;font-weight:700;color:var(--ink-2);background:#fff}
.gear .ico{width:16px;height:16px}
.gear:hover,.gear.on{border-color:#9DB8FF;color:#2554F0;background:#F2F6FF}
.tabnav{position:sticky;top:0;z-index:60;background:linear-gradient(100deg,#0E2A63 0%,#173E8C 55%,#2257C5 100%);box-shadow:0 6px 18px -10px rgb(14 42 99 / .6)}
.tn-inner{display:flex;align-items:flex-end;gap:2px;padding:8px 24px 0;min-height:54px;overflow-x:auto;scrollbar-width:none}
.tn-inner::-webkit-scrollbar{display:none}
.tn-label{align-self:center;font-size:10.5px;font-weight:800;letter-spacing:1.5px;color:rgb(255 255 255 / .45);margin:0 6px 6px 2px}
.tn-sep{align-self:center;width:1px;height:22px;background:rgb(255 255 255 / .2);margin:0 10px 6px}
.tabnav a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px 12px;border-radius:12px 12px 0 0;color:rgb(255 255 255 / .82);font-weight:700;font-size:14.5px;white-space:nowrap;position:relative;transition:background .15s,color .15s}
.tabnav a .ico{width:18px;height:18px;opacity:.85}
.tabnav a:hover{background:rgb(255 255 255 / .12);color:#fff}
.tabnav a.on{background:var(--bg,#F6F8FC);color:#173E8C}
.tabnav a.on .ico{opacity:1;color:#2257C5}
.tabnav a.on::before,.tabnav a.on::after{content:"";position:absolute;bottom:0;width:12px;height:12px;background:transparent}
.tabnav a.on::before{left:-12px;border-bottom-right-radius:12px;box-shadow:6px 6px 0 6px var(--bg,#F6F8FC)}
.tabnav a.on::after{right:-12px;border-bottom-left-radius:12px;box-shadow:-6px 6px 0 6px var(--bg,#F6F8FC)}
.tn-note{align-self:center;font-size:11.5px;color:rgb(255 255 255 / .55);margin-bottom:6px;white-space:nowrap}
.tabnav .sp{flex:1}
.main{max-width:1560px;margin:0 auto;padding:24px 28px 80px}
.savebar{top:62px}
.apx-list{top:126px}
@media (max-width:900px){.tn-note{display:none}.tabnav a{padding:10px 12px 11px;font-size:13.5px}.tn-label{display:none}}
@media (max-width:760px){.main{padding:16px 14px 70px}}
/* 맨 위로 */
.to-top{position:fixed;right:22px;bottom:26px;z-index:70;width:46px;height:46px;border-radius:50%;border:0;background:linear-gradient(135deg,#2257C5,#5B5BF0);color:#fff;box-shadow:0 10px 22px -8px rgb(34 87 197 / .7);display:flex;align-items:center;justify-content:center;cursor:pointer}
.to-top .ico{width:22px;height:22px}
.to-top:hover{transform:translateY(-2px)}

/* ── 2026-10-23: 내 작업·알림·작업 머리·대비표·안건·제정 ── */
/* 현행 쪽 표시: 더 옅고 밝게 */
.arow.st-changed .lc.o,.arow.st-deleted .lc.o{background:#FFFBFC;border-left-color:#FFC9D6}
.arow .lrow.chg .lc.o{background:#FFF5F8}
.mk-old{color:#E8336A;background:#FFEDF2;border-bottom-color:#FF9DB7}
.lc.line-gone{background:#FFF5F8!important}
/* 알림 카드: 누르면 목록 */
.law-alert .alert-item{display:block;width:100%;text-align:left;cursor:pointer;font:inherit;transition:transform .12s,box-shadow .12s}
.law-alert .alert-item:hover{transform:translateY(-2px);box-shadow:0 10px 22px -12px rgb(34 87 197 / .45);border-color:#9DB8FF}
.alert-item .go{display:inline-block;margin-top:6px;font-size:12.5px;font-weight:800;color:#2257C5}
/* 내 작업 찾기: 가로 한 줄(좁으면 줄바꿈) */
.job-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.job-filter>*{width:auto!important;flex:none}
.job-filter input[type=search]{flex:1 1 240px!important;min-width:200px}
.job-filter select{min-width:120px}
.jf-date{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.jf-date input{width:150px!important}
.jobs-t td.why{max-width:420px;color:var(--ink-2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nowrap{white-space:nowrap}
.kind{font-size:11.5px;font-weight:800;padding:2px 9px;border-radius:999px;white-space:nowrap}
.k-amend{background:#EDF3FF;color:#2554F0}.k-upper{background:#F0EBFF;color:#6E4BF2}.k-enact{background:#E3F8EC;color:#12865A}
.jobs-count{margin-top:8px}
/* 작업 머리 위 줄: 목록으로·삭제 */
.job-crumb{display:flex;align-items:center;gap:10px;margin:-4px 0 12px}
.job-crumb .sp{flex:1}
.btn.back-btn.soft{background:#fff;border:1.5px solid #BFCDE3;color:#1E3A8A;box-shadow:none}
.btn.back-btn.soft:hover{background:#F1F5FB;color:#1E3A8A}
/* 대비표: 작업실과 같은 모양 */
.cmp2 .cmp-grid{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}
.cg-head,.cg-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 220px}
.cmp-grid.two .cg-head,.cmp-grid.two .cg-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cg-head>div{display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 10px;font-weight:800;font-size:15px;letter-spacing:2px;border-bottom:1.5px solid #E4E9F2}
.cg-head .ico{width:16px;height:16px}
.cg-head .ch-old{color:#E11D48}.cg-head .ch-new{color:#2554F0}.cg-head .ch-why{color:#0F7A5C;letter-spacing:0}
.cg-row>div{padding:12px 16px;font-family:var(--serif);font-size:14.5px;line-height:1.85;white-space:pre-wrap;word-break:keep-all;border-bottom:1px solid #EEF2F7}
.cg-row:last-child>div{border-bottom:0}
.cg-row>div+div{border-left:1.5px solid #E4E9F2}
.cg-row .cg-o{background:#FFFDFE}
.cg-row .cg-why{font-family:var(--sans);font-size:13px;white-space:normal;background:#FBFDFC}
.cg-why textarea.why{width:100%;min-height:72px;font-size:13px;resize:vertical}
.cg-row .dash{color:#A3AEC2;letter-spacing:-1px}
.sheet{margin-top:16px}
.sheet-key{font-weight:800;font-size:15px;margin:0 0 8px;display:flex;align-items:center;gap:8px}
.sheet .cg-row>div{white-space:normal}
.sheet-head{font-weight:700}
.omit-line{text-align:center;color:var(--ink-3)}
.sheet-tab{font-size:12.5px;line-height:1.5;margin:4px 0}
.sheet-tab tr.omit td{text-align:center;color:var(--ink-3);background:#FAFBFD}
@media (max-width:900px){.cg-head,.cg-row{grid-template-columns:1fr}.cg-row>div+div{border-left:0;border-top:1px dashed #E4E9F2}}
/* 안건 문장·부칙: 소제목 아래 내용은 들여 씀 */
.dsec.major .fblock>:not(.fh){margin-left:36px}
.dsec.major .fblock .fh-hint{margin-left:36px}
.when-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.when-row select{width:auto;min-width:220px;flex:none}
.when-val{display:inline-flex;align-items:center;gap:8px;margin:0}
.when-val span{font-size:13px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.when-val input{width:200px}
.mh-blue~.fblock .fh-ico{background:#E8F0FF;color:#2554F0}
.mh-green~.fblock .fh-ico{background:#E3F8EC;color:#12865A}
/* 제정: 작업실 한 칸 */
.panes.enact{grid-template-columns:minmax(0,1fr)}
.panes.enact .pairs .lc.o,.panes.enact .col-head .ch-old{display:none}
.panes.enact .pairs .lrow{grid-template-columns:minmax(0,1fr)!important}
.panes.enact .pairs .lrow>.lc.n{padding-left:13px;border:0}
.warn-text{color:#E11D48;font-weight:700}
.nj-list.short{max-height:260px}
/* 새 작업 ☆ */
.star{display:inline-block;width:20px;margin-right:4px;color:#C3CCDA;font-size:15px;cursor:pointer}
.star.on{color:#F5B800}
.star:hover{color:#F5B800}
.apx-mode{margin:0 0 0 6px}
.apx-mode button{display:inline-flex;align-items:center;gap:5px}
.apx-mode .ico{width:14px;height:14px}
.panes.enact .pane.wide{grid-column:auto}
.dsec.major .fblock>:not(.fh){width:calc(100% - 36px)}
.dsec.major .fblock>.when-row{width:auto}
/* 제정 작업실: 문서처럼(신설 색·표시 없이) */
.panes.enact .col-head,.panes.enact .lrow>.lc.o,.panes.enact .doc-title-o{display:none}
.panes.enact .arow .lc.n{background:none!important;border-left:0!important;color:var(--ink)}
.panes.enact .arow .lc.n *{color:inherit}
.panes.enact .arow .badge.b-add{display:none}
.panes.enact .arow:hover .lc.n{background:#F7FAFF!important}
.hero .row{gap:10px;flex-wrap:wrap}

/* ── 2026-10-23 오후: 서브메뉴·내 규정·대비표 촘촘히·별표 편집 도구 ── */
.page2{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}
.page-main{min-width:0}
.page-main>.dsec:first-child{margin-top:0}
@media (max-width:900px){.page2{grid-template-columns:1fr}}
.subnav{position:sticky;top:70px;display:flex;flex-direction:column;gap:3px;padding:10px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--sh-1)}
.sn-item{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:transparent;padding:9px 11px;border-radius:10px;font-weight:600;font-size:13.5px;color:var(--ink-2);cursor:pointer}
.sn-item .ico{width:16px;height:16px;color:#8EA0BF}
.sn-item span{flex:1}
.sn-item b{font-size:12px;font-weight:800;color:#64748B;background:#F1F5FB;border-radius:999px;padding:1px 8px}
.sn-item:hover{background:#F4F7FD;color:#173E8C}
.sn-item.on{background:#173E8C;color:#fff}
.sn-item.on .ico{color:#fff}.sn-item.on b{background:rgb(255 255 255 / .2);color:#fff}
.sn-sep{font-size:10.5px;font-weight:800;letter-spacing:1.2px;color:#A3AEC2;margin:10px 11px 2px}
.reg-mini{border:0;background:transparent;padding:2px 4px;border-radius:6px;color:#8EA0BF;cursor:pointer;vertical-align:middle}
.reg-mini .ico{width:15px;height:15px}
.reg-mini:hover{background:#EDF3FF;color:#2554F0}
.mr-table td .btn{margin:2px 0}
.mr-box{background:#F9FBFE;border:1px solid var(--border);border-radius:12px;padding:12px 14px}
.mr-box .fh-title{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.mr-box .fh-title .ico{width:16px;height:16px;color:#2554F0}
/* 3. 입력 상자 바깥선 흐리게 */
.rich-wrap,.items .it .rich-wrap{border-color:#E3E8F0}
.rich-bar{background:#FAFBFD;border-bottom-color:#EEF1F6}
/* 2·6. 대비표 촘촘히, 개정이유 넓고 글자만큼 늘어남 */
.cg-head,.cg-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 300px}
.cg-row>div{padding:8px 14px}
.cg-why textarea.why{min-height:0;height:auto;overflow:hidden;resize:none;padding:6px 9px;line-height:1.55}
.sheet .cg-row>div{padding:6px 12px}
.sheet .omit-line{margin:0}
.sheet-head{margin:0}
.sheet .cg-row p{margin:0}
/* 7. 현재 개정 내용·상위법 조문 접기 */
.cur-chg{margin:8px 0 10px;border:1px solid #DCE5F7;border-radius:10px;background:#FAFCFF}
.cc-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;font-weight:800;font-size:13px;color:#173E8C;border-bottom:1px solid #EEF2F9}
.cc-head .ico{width:15px;height:15px}
.cc-body{padding:8px 14px;max-height:200px;overflow:auto;font-family:var(--serif);font-size:14px}
.cc-body p{margin:0 0 4px}
details.ul-chg>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px}
details.ul-chg>summary::before{content:"▸";color:#8EA0BF;font-size:12px}
details.ul-chg[open]>summary::before{content:"▾"}
details.ul-chg[open]>summary{margin-bottom:8px}
.ul-tip{margin:8px 2px 0}
/* 8. 별표 편집: 줄마다 도구(마우스 올리면) */
.ab-wrap{position:relative;padding:0 8px}
.ab-wrap .ab-text{margin:0;padding:3px 0}
.ab-bar{display:none;position:absolute;right:4px;top:-14px;z-index:5;align-items:center;gap:3px;padding:3px 5px;background:#fff;border:1px solid #DCE3EE;border-radius:9px;box-shadow:0 6px 14px -8px rgb(23 62 140 / .35);font-family:var(--sans)}
.ab:hover>.ab-bar,.ab:focus-within>.ab-bar{display:flex}
.ab-table>.ab-bar{top:auto;bottom:-14px}
.ab-bar button{border:0;background:transparent;border-radius:6px;padding:2px 7px;font-size:11.5px;font-weight:700;color:var(--ink-2);cursor:pointer}
.ab-bar button:hover{background:#EDF3FF;color:#2554F0}
.ab-bar button.danger:hover{background:#FFF1F2;color:#E11D48}
.ab-bar .sep{width:1px;height:14px;background:#DCE3EE}
.apx-doc-title.empty{font-size:13px;font-weight:500;min-height:1.4em}
.apx-doc-title:empty::before{content:"제목 없음(필요할 때만 입력)";color:#C3CCDA;font-weight:500;font-size:13px}
.apx-doc-title:empty:not(:focus){opacity:.8}
.mr-table th{white-space:nowrap}
.btn.nowrap,.nowrap{white-space:nowrap}
.mr-find{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.mr-find input{max-width:340px}

/* 상위법 알림: 내 담당 규정 관련 개정(맨 앞) */
.alert-mine { display: block; width: 100%; text-align: left; margin: 10px 0 12px; padding: 12px 16px; border: 1px solid #9cc7f5; border-left: 5px solid #2f7de1;
  border-radius: 10px; background: linear-gradient(90deg, #eef6ff, #f7fbff); cursor: pointer; font: inherit; color: inherit; }
.alert-mine:hover { border-color: #2f7de1; box-shadow: 0 2px 10px rgba(47, 125, 225, .15); }
.alert-mine .am-head { display: flex; align-items: center; gap: 8px; color: #1d5fb8; }
.alert-mine .am-head .go { margin-left: auto; font-size: 13px; color: #2f7de1; }
.alert-mine ul { margin: 8px 0 0; padding-left: 26px; }
.alert-mine li { margin: 3px 0; }
.al-mine { color: #1d5fb8; font-weight: 600; }
.al-none { margin: 8px 0 12px; display: flex; align-items: center; gap: 6px; }

.issue .fix-btn{margin-left:auto;flex:none;background:#fff;border:1.5px solid #86D3B0;color:#0F7A4F;box-shadow:none}
.issue .fix-btn:hover{background:#ECFDF5;color:#0B6342}

/* ── 2026-10-23 화면 구성 개편: 한 줄 주 메뉴 · 넓은 본문 · 전체 높이 왼쪽 메뉴 · 대시보드 ── */
:root{--pad:clamp(16px,2.2vw,40px);--gnb-h:64px;--blue:#2563EB;--blue-h:#1D4ED8}
.gnb{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid #E3E8F2;box-shadow:0 2px 10px -6px rgb(30 64 175 / .18)}
.gnb::before{content:"";display:block;height:3px;background:linear-gradient(90deg,#2563EB,#0EA5E9 55%,#22C3A6)}
.gnb-inner{display:flex;align-items:center;gap:14px;height:var(--gnb-h);padding:0 var(--pad)}
.gnb .logo{flex:none;margin-right:10px}
.gnb-menu{display:flex;align-items:stretch;height:100%;gap:2px;overflow-x:auto;scrollbar-width:none}
.gnb-menu::-webkit-scrollbar{display:none}
.gnb-menu a{position:relative;display:inline-flex;align-items:center;gap:7px;padding:0 14px;color:#334155;font-weight:650;font-size:15px;white-space:nowrap;transition:color .15s,background .15s}
.gnb-menu a .ico{width:18px;height:18px;color:#7C8BA5}
.gnb-menu a:hover{color:var(--blue);background:#F3F7FF}
.gnb-menu a:hover .ico{color:var(--blue)}
.gnb-menu a.on{color:var(--blue);font-weight:800}
.gnb-menu a.on .ico{color:var(--blue)}
.gnb-menu a.on::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--blue)}
.gnb .gear.on{color:var(--blue)}
@media (max-width:1280px){.gnb .brand small{display:none}.gnb-menu a{padding:0 10px;font-size:14px}.gnb .chip{display:none}}
@media (max-width:900px){.gnb .brand{display:none}}
.main{max-width:none;padding:22px var(--pad) 80px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.page-head h1{margin:2px 0 0;font-size:24px}
.page-head .lead{margin:6px 0 0}
/* 전체 높이 왼쪽 메뉴(서브메뉴가 있는 화면) */
.page2.full{grid-template-columns:236px minmax(0,1fr);gap:0;margin:-22px calc(-1 * var(--pad)) -80px}
.page2.full>.subnav{position:sticky;top:var(--gnb-h);height:calc(100vh - var(--gnb-h));overflow:auto;border:0;border-right:1px solid #E3E8F2;border-radius:0;box-shadow:none;padding:20px 12px;background:#fff}
.page2.full>.page-main{padding:22px var(--pad) 80px 28px;min-width:0}
@media (max-width:900px){.page2.full{margin:-22px calc(-1 * var(--pad)) 0}.page2.full>.subnav{position:static;height:auto;border-right:0;border-bottom:1px solid #E3E8F2;flex-direction:row;flex-wrap:wrap}.page2.full>.page-main{padding:18px var(--pad) 60px}}
.sn-item.on{background:var(--blue);color:#fff}
.sn-item:hover{color:var(--blue)}
.sn-item.on:hover{color:#fff}
/* 단추: 그라데이션 없이 밝고 단정하게 */
.btn.pri,.btn.mk-btn{background:var(--blue);border:1px solid var(--blue);color:#fff;box-shadow:0 2px 6px -2px rgb(37 99 235 / .45)}
.btn.pri:hover,.btn.mk-btn:hover{background:var(--blue-h);border-color:var(--blue-h);color:#fff;transform:none;filter:none}
.btn.open-btn,.btn.finish-btn{background:#16A34A;border:1px solid #16A34A;color:#fff;box-shadow:0 2px 6px -2px rgb(22 163 74 / .45)}
.btn.open-btn:hover,.btn.finish-btn:hover{background:#15803D;color:#fff;transform:none;filter:none}
.btn.big{min-height:48px;padding:0 26px;font-size:15.5px;font-weight:700;letter-spacing:-.2px;border-radius:12px;margin:0}
.btn.back-btn{background:#fff;border:1.5px solid #BFD0F0;color:#1E40AF;box-shadow:none}
.btn.back-btn:hover{background:#F1F6FF;border-color:var(--blue);color:var(--blue-h);transform:none}
/* 대시보드 */
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
@media (max-width:1100px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 18px;background:#fff;border:1px solid #E3E8F2;border-radius:16px;box-shadow:var(--sh-1);cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s}
.kpi:hover{border-color:#9DB8F5;box-shadow:0 6px 18px -10px rgb(37 99 235 / .4)}
.kpi.skel{min-height:86px;background:linear-gradient(90deg,#F3F6FB,#FAFBFE,#F3F6FB)}
.kpi-ico{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px}
.kpi-ico .ico{width:22px;height:22px}
.kpi.kt-sky .kpi-ico{background:#E0F2FE;color:#0284C7}.kpi.kt-blue .kpi-ico{background:#E8EFFF;color:#2563EB}
.kpi.kt-green .kpi-ico{background:#DCFCE7;color:#16A34A}.kpi.kt-violet .kpi-ico{background:#F1E9FF;color:#7C3AED}
.kpi.kt-teal .kpi-ico{background:#CCFBF1;color:#0D9488}
.kpi-txt{display:flex;flex-direction:column;min-width:0}
.kpi-label{font-size:13px;font-weight:700;color:var(--ink-2)}
.kpi-num{font-size:28px;line-height:1.15;font-weight:800;color:var(--ink);letter-spacing:-.5px}
.kpi-hint{font-size:11.5px;color:var(--ink-3)}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:1100px){.dash-grid{grid-template-columns:1fr}}
.dash-grid .dsec{margin:0}
.recent-list{display:flex;flex-direction:column}
.recent-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 6px;border:0;border-top:1px solid #EEF2F7;background:transparent;font:inherit;color:inherit;cursor:pointer;border-radius:8px}
.recent-item:first-child{border-top:0}
.recent-item:hover{background:#F5F8FF}
.ri-main{flex:1;min-width:0;display:flex;flex-direction:column}
.ri-main .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ri-side{flex:none;display:flex;align-items:center;gap:8px}
.law-alert .alert-mine{margin-top:4px}
.job-filter{margin:0 0 12px}

/* 안건 문장·부칙: 왼쪽 메뉴 */
.ag-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:900px){.ag-layout{grid-template-columns:1fr}}
.ag-nav{position:sticky;top:calc(var(--gnb-h) + 14px);display:flex;flex-direction:column;gap:2px;padding:10px;background:#fff;border:1px solid #E3E8F2;border-radius:14px}
.ag-grp{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:transparent;padding:10px 11px;border-radius:10px;font:inherit;font-weight:800;font-size:14px;color:var(--ink);cursor:pointer;margin-top:4px}
.ag-grp .ico{width:17px;height:17px}
.ag-grp.g-blue .ico{color:#2563EB}.ag-grp.g-green .ico{color:#16A34A}
.ag-grp.g-blue.on{background:#E8EFFF;color:#1D4ED8}.ag-grp.g-green.on{background:#DCFCE7;color:#15803D}
.ag-sub{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;border:0;background:transparent;padding:6px 11px 6px 36px;border-radius:8px;font:inherit;font-size:13px;color:var(--ink-2);cursor:pointer}
.ag-sub b{font-size:11.5px;color:#64748B;background:#F1F5FB;border-radius:999px;padding:0 7px}
.ag-sub:hover,.ag-sub.on{background:#F3F7FF;color:#1D4ED8}
.ag-body .fblock{scroll-margin-top:calc(var(--gnb-h) + 16px)}

/* 작업실: 상위법 개정 반영 카드 */
.up-card{border:1px solid #D9E3FA;border-radius:14px;background:#F7FAFF;padding:14px 16px}
.upc-head{display:flex;gap:10px;align-items:flex-start}
.upc-head>.ico{flex:none;width:22px;height:22px;color:#7C3AED;margin-top:2px}
.upc-head b{font-size:15px}
.upc-dates{display:flex;gap:8px;margin-top:4px}
.upc-dates span{font-size:12px;font-weight:600;color:#475569;background:#fff;border:1px solid #E3E8F2;border-radius:999px;padding:1px 10px}
.upc-refs{margin-top:10px;background:#fff;border:1px solid #E3E8F2;border-radius:10px;padding:8px 12px}
.upc-sub{font-size:12px;font-weight:800;color:#64748B;margin-bottom:4px}
.upc-ref{display:flex;align-items:center;gap:8px;padding:4px 0;border-top:1px dashed #EEF2F7;font-size:13.5px}
.upc-sub+.upc-ref{border-top:0}
.upc-ref .badge{margin-left:auto}
.btn.up-view-btn{width:100%;margin-top:10px;background:#fff;border:1.5px solid #B9C9F5;color:#1D4ED8;font-weight:700}
.btn.up-view-btn:hover{background:#EEF4FF}
.drawer.wide .drawer-panel{width:min(1280px,96vw)}
.ud-wrap{padding:18px 22px 40px}
.ud-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.ud-sec{margin-bottom:20px}
.ud-points{margin:6px 0 0;padding-left:22px;font-size:14.5px;line-height:1.8}
.ud-chg{border:1px solid #E3E8F2;border-radius:12px;padding:12px 14px;margin-top:10px;background:#fff}
.ud-chg.rel{border-color:#9DB8F5;box-shadow:0 0 0 3px #EEF4FF}
.ud-chg-h{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:15px}
.ud-chg .lawpair.fmt{font-size:15px}
/* 작업실: AI에게 추가 요청 카드 */
.ask-card{margin-top:14px;border:1.5px solid #C9D8FB;border-radius:16px;background:#fff;overflow:hidden}
.ask-head{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;background:linear-gradient(90deg,#EEF4FF,#F7FAFF);border-bottom:1px solid #DCE6FB}
.ask-head>.ico{flex:none;width:20px;height:20px;color:#2563EB;margin-top:2px}
.ask-head b{display:block;font-size:15.5px;color:#1E3A8A}
.ask-head span{font-size:12.5px;color:#475569}
.ask-step{padding:12px 16px;border-top:1px solid #EEF2F7}
.ask-head+.ask-step{border-top:0}
.ask-step-t{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13.5px;margin-bottom:8px;color:#1F2937}
.stepno{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#2563EB;color:#fff;font-size:12px;font-weight:800}
.stepno.muted{background:#E2E8F0;color:#475569}.stepno .ico{width:13px;height:13px}
.ask-step .cc-body{max-height:220px;overflow:auto;border:1px solid #E3E8F2;border-radius:10px;padding:8px 12px;background:#FBFCFF}
.ask-step .ask-ai{margin:0}
.ask-hist{margin:0;padding:0;list-style:none;max-height:260px;overflow:auto}
.ask-hist li{padding:8px 10px;border:1px solid #EEF2F7;border-radius:10px;margin-bottom:6px;font-size:13px;line-height:1.6}
.ah-q,.ah-a{display:flex;gap:8px;align-items:flex-start}
.ah-a{margin-top:4px;color:#334155}
.ah-tag{flex:none;font-size:11px;font-weight:800;color:#1D4ED8;background:#E8EFFF;border-radius:6px;padding:1px 7px;margin-top:1px}
.ah-tag.a{color:#15803D;background:#DCFCE7}
.jobs-t .del-btn,.tlist .del-btn{white-space:nowrap}

/* 내 작업: 보기 방식(작업별 / 상위법 개정별 묶음) */
.jf-view{display:inline-flex;gap:2px;padding:3px;margin:0 0 10px;background:#F1F5FB;border-radius:10px}
.jf-view button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:6px 12px;border-radius:8px;font:inherit;font-size:13px;font-weight:700;color:#475569;cursor:pointer}
.jf-view button .ico{width:15px;height:15px}
.jf-view button.on{background:#fff;color:#1D4ED8;box-shadow:0 1px 3px rgb(15 23 42 / .12)}
.law-grp{border:1px solid #E3E8F2;border-radius:14px;margin-bottom:12px;overflow:hidden;background:#fff}
.lg-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:11px 16px;background:#F6F3FF;border-bottom:1px solid #E9E3FB}
.lg-head>.ico{width:18px;height:18px;color:#7C3AED}
.lg-head b{font-size:14.5px}
.lg-counts{margin-left:auto;display:flex;gap:6px}
.lg-t{margin:0}
.lg-t td{padding-top:9px;padding-bottom:9px}
.tag.tag-old{background:#F1F5F9;color:#64748B;border:1px solid #E2E8F0}
.lg-t{table-layout:fixed;width:100%}.lg-t td:nth-child(2){width:120px}.lg-t td:nth-child(3){width:190px}.lg-t td:nth-child(4){width:110px;text-align:right}

/* 법 개정 전·후: 분홍 대신 밝은 회색 / 하늘색 */
.lp-col.old{background:#F8FAFC;border-color:#E2E8F0}
.lp-col.new{background:#F0F7FF;border-color:#CFE2FF}
.lp-col.old .lp-head{color:#64748B}
.lp-col.new .lp-head{color:#1D4ED8}
/* 조 제목 누르면 접기·펼치기 */
.lawchg>.row,.ud-chg-h{cursor:pointer;user-select:none;border-radius:8px;padding:4px 6px;margin:0 -6px}
.lawchg>.row:hover,.ud-chg-h:hover{background:#F3F7FF}
.lawchg>.row::after,.ud-chg-h::after{content:"접기 ▴";margin-left:auto;font-size:12px;font-weight:600;color:#64748B}
.lawchg.folded>.row::after,.ud-chg.folded>.ud-chg-h::after{content:"펼치기 ▾";color:#2563EB}
.lawchg.folded .lawpair,.ud-chg.folded .lawpair{display:none}
/* 상위법 검토 화면: 왼쪽 메뉴 */
.ud-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start;margin-top:14px}
@media (max-width:1000px){.ud-layout{grid-template-columns:1fr}}
.ud-nav{position:sticky;top:calc(var(--gnb-h) + 14px);display:flex;flex-direction:column;gap:2px;padding:10px;background:#fff;border:1px solid #E3E8F2;border-radius:14px}
.ud-nav-i{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:transparent;padding:9px 11px;border-radius:10px;font:inherit;font-size:13.5px;font-weight:650;color:var(--ink-2);cursor:pointer}
.ud-nav-i .ico{width:16px;height:16px;color:#8EA0BF}
.ud-nav-i span{flex:1}
.ud-nav-i b{font-size:12px;font-weight:800;color:#64748B;background:#F1F5FB;border-radius:999px;padding:1px 8px}
.ud-nav-i:hover{background:#F3F7FF;color:#1D4ED8}
.ud-nav-i.on{background:#2563EB;color:#fff}
.ud-nav-i.on .ico{color:#fff}.ud-nav-i.on b{background:rgb(255 255 255 / .22);color:#fff}
.ud-main>[data-udsec]{margin-top:0}
/* 내 작업 묶음 머리: 검토 화면 열기 */
.lg-open{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;padding:2px 4px;border-radius:8px;font:inherit;font-size:14.5px;font-weight:800;color:var(--ink);cursor:pointer}
.lg-open .go{font-size:12px;font-weight:700;color:#7C3AED}
.lg-open:hover{background:#EDE7FF;color:#5B21B6}

.ud-nav-sep{font-size:11px;font-weight:800;letter-spacing:.5px;color:#94A3B8;margin:10px 11px 3px}
.ud-nav-sep:first-child{margin-top:2px}

/* 첨부 상자 */
.att{margin-top:10px}
.att-drop{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1.5px dashed #B9C9F5;border-radius:12px;background:#F8FAFF;cursor:pointer;transition:background .15s,border-color .15s}
.att-drop:hover{background:#EEF4FF;border-color:#2563EB}
.att-drop>.ico{flex:none;width:18px;height:18px;color:#2563EB}
.att-drop b{color:#1D4ED8}
.att-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.att-list:empty{display:none}
.att-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border:1px solid #CFE0FB;border-radius:999px;background:#fff;font-size:12.5px}
.att-chip .ico{width:14px;height:14px;color:#2563EB}
.att-chip b{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att-chip button{border:0;background:#F1F5F9;color:#64748B;border-radius:50%;width:20px;height:20px;line-height:18px;cursor:pointer;font-size:14px;padding:0}
.att-chip button:hover{background:#FEE2E2;color:#DC2626}
.att-chip.busy{color:#64748B}
.apx-import{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--border)}
.apx-import label.btn{cursor:pointer}
.apx-import>.meta:last-child{flex-basis:100%;font-size:11.5px}

/* 끌어 놓기 */
.att-drop{min-height:52px}
.att.drag-on .att-drop,.apx-drop.drag-on{background:#E0ECFF;border-color:#2563EB;border-style:solid;box-shadow:0 0 0 4px #DBEAFE}
.apx-import{flex-direction:column;align-items:stretch}
.ai-t{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:var(--ink-2)}
.ai-t .ico{width:15px;height:15px;color:#2563EB}
.ai-zones{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.apx-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:8px;border:1.5px dashed #B9C9F5;border-radius:12px;background:#F8FAFF;cursor:pointer;text-align:center;transition:background .15s,border-color .15s}
.apx-drop:hover{background:#EEF4FF;border-color:#2563EB}
.apx-drop b{font-size:13px;color:#1D4ED8}
.apx-drop span{font-size:11.5px;color:#64748B}

/* 작업 화면 탭 안 왼쪽 메뉴(작업실·신구조문대비표) */
.sec-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:1000px){.sec-layout{grid-template-columns:1fr}}
.sec-nav{position:sticky;top:calc(var(--gnb-h) + 14px);display:flex;flex-direction:column;gap:2px;padding:10px;background:#fff;border:1px solid #E3E8F2;border-radius:14px}
.sec-nav-i{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:transparent;padding:10px 11px;border-radius:10px;font:inherit;font-size:13.5px;font-weight:700;color:var(--ink-2);cursor:pointer;line-height:1.35}
.sec-nav-i .ico{flex:none;width:16px;height:16px;color:#8EA0BF}
.sec-nav-i span{flex:1}
.sec-nav-i b{font-size:12px;font-weight:800;color:#64748B;background:#F1F5FB;border-radius:999px;padding:1px 8px}
.sec-nav-i:hover{background:#F3F7FF;color:#1D4ED8}
.sec-nav-i.on{background:#2563EB;color:#fff}
.sec-nav-i.on .ico{color:#fff}.sec-nav-i.on b{background:rgb(255 255 255 / .22);color:#fff}
.sec-body>[data-secpane]>.memo{margin-top:0}
.fix-all-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:8px;border:1px solid #BFE8D3;border-radius:10px;background:#F0FBF5;color:#0F5F3E}
.fix-all-bar .ico{width:16px;height:16px}
.fix-all-bar .fix-btn{margin-left:auto}

/* 탭 아래 본문 간격, 왼쪽 메뉴 한 줄 */
#tab>.sec-layout,#tab>.ag-layout{margin-top:18px}
#tab>.savebar+.ag-layout{margin-top:14px}
.sec-layout{grid-template-columns:200px minmax(0,1fr);gap:18px}
.sec-nav-i{white-space:nowrap;font-size:13px;padding:10px 10px;gap:8px}
.sec-nav-i span{overflow:hidden;text-overflow:ellipsis}
.sec-body>[data-secpane]>.panes{margin-top:0}
.sec-body .checks{margin-top:0}
.issue{align-items:center}
.issue .art-go{margin-left:auto;flex:none;background:#fff;border:1.5px solid #BFD0F0;color:#1D4ED8;box-shadow:none}
.issue .art-go:hover{background:#EEF4FF}

/* 조문 검사: 반영한 항목도 목록에 남김 */
.fixed-h{display:flex;align-items:center;gap:6px;margin:16px 0 6px;padding-top:12px;border-top:1px dashed #D5DEEC;font-size:13.5px;font-weight:800;color:#0F7A4D}
.fixed-h .ico{width:16px;height:16px}
.fixed-h b{font-size:12px;background:#E7F8EF;border-radius:999px;padding:1px 8px}
.issue.done{background:#F6FCF9;border-color:#CDEEDC}
.issue.done>span:nth-child(2){color:#475569}
.badge.b-ok{background:#E7F8EF;color:#0F7A4D;border:1px solid #BDE9D1;white-space:nowrap}
.fix-done{display:flex;align-items:center;gap:4px;margin-top:3px;font-size:12.5px;color:#0F7A4D}
.fix-done .ico{width:13px;height:13px;flex:none}
.fixed-mark{margin-left:auto;flex:none;background:#E7F8EF;border:1.5px solid #BDE9D1;color:#0F7A4D;box-shadow:none;cursor:default}
.fixed-mark .ico{width:14px;height:14px}
.ok-line{display:flex;align-items:center;gap:6px;color:#0F7A4D;font-weight:700}
.ok-line .ico{width:15px;height:15px}

/* 내 작업: 체크해서 한 번에 삭제 */
.jobs-t th.chk,.jobs-t td.chk{width:38px;text-align:center;padding-left:6px;padding-right:0}
.jobs-t input[type=checkbox]{width:16px;height:16px;accent-color:#2563EB;cursor:pointer;vertical-align:middle}
.sel-bar{display:flex;align-items:center;gap:8px;margin:10px 0 6px;padding:8px 12px;border:1px solid #BFD0F0;border-radius:10px;background:#F3F7FF;font-size:13.5px}
.sel-bar[hidden]{display:none}
.sel-bar>span{margin-right:auto;color:#1D4ED8}
.btn.danger{background:#fff;border:1.5px solid #F5B5B5;color:#DC2626;box-shadow:none}
.btn.danger:hover{background:#FEF2F2}
.lg-t thead th{font-size:12px;color:#64748B;font-weight:700;background:transparent}

/* 상위법 검토: 담당 규정 묶음 */
.mine-grp{margin:4px 0 12px;padding:10px 12px;border:1.5px solid #BFE3F5;border-radius:12px;background:#F2FAFF}
.mg-h{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#0369A1;margin:2px 0 8px}
.mg-h .ico{width:15px;height:15px}
.mg-h b{font-size:12px;background:#E0F2FE;border-radius:999px;padding:1px 8px}
.mg-h.other{color:#475569;margin-top:6px}.mg-h.other b{background:#F1F5F9}
/* 결과 창 */
.modal-wrap{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}
.modal-back{position:absolute;inset:0;background:rgb(15 23 42 / .38)}
.modal{position:relative;width:min(560px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:16px;padding:22px 24px;box-shadow:0 24px 60px rgb(15 23 42 / .25)}
.modal-h{display:flex;align-items:center;gap:8px;font-size:17px;margin-bottom:4px}
.modal-h .ico{width:22px;height:22px;flex:none}
.modal-h.ok{color:#0F7A4D}.modal-h.none{color:#EA580C}
.mr-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:6px}
.mr-list li{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #E3E8F2;border-radius:10px;font-weight:700}
.mr-sum,.mr-none,.mr-q{margin:10px 0;padding:10px 12px;border-radius:10px;background:#F6F8FC;font-size:14px}
.mr-none{background:#FFF7ED;border:1px solid #FED7AA}
.mr-none p{margin:4px 0 0}
.mr-q ul{margin:4px 0 0;padding-left:18px}
.modal-f{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

/* ── 절차 진행 ── */
.proc-next{background:linear-gradient(135deg,#EEF4FF,#F5F0FF);border:1.5px solid #C9D8FF;border-radius:16px;padding:18px 20px;margin:18px 0 14px}
.proc-next.all-done{background:#F0FBF5;border-color:#BFE8D3}
.pn-head{display:flex;align-items:center;gap:14px}
.pn-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#2563EB;color:#fff;flex:none}
.all-done .pn-ico{background:#16A34A}
.pn-ico .ico{width:24px;height:24px}
.pn-t{flex:1;min-width:0}.pn-t h2{margin:2px 0 0;font-size:20px}
.pn-prog{width:220px;text-align:right}
.pn-prog .bar{height:8px;border-radius:99px;background:#DCE5F7;overflow:hidden;margin-top:6px}
.pn-prog .bar i{display:block;height:100%;width:0;background:#2563EB;border-radius:99px}
.all-done .pn-prog .bar i{background:#16A34A}
.pn-todo{margin:12px 0 8px 58px;padding-left:18px;font-size:14.5px;line-height:1.7}
.pn-docs,.ps-docs{display:flex;flex-wrap:wrap;gap:6px}
.pn-docs{margin-left:58px}
.proc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.proc-step{display:flex;gap:14px;padding:14px 16px;border:1px solid #E3E8F2;border-radius:14px;background:#fff}
.proc-step.now{border:1.5px solid #8DB0FF;box-shadow:0 0 0 4px #EEF4FF}
.proc-step.done{background:#F7FCF9;border-color:#CDEEDC}
.ps-no{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#EEF2F7;color:#475569;font-weight:800;flex:none}
.now .ps-no{background:#2563EB;color:#fff}.done .ps-no{background:#16A34A;color:#fff}
.ps-no .ico{width:16px;height:16px}
.ps-main{flex:1;min-width:0}
.ps-head{display:flex;align-items:center;gap:8px;font-size:15.5px}
.ps-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:10px 0 4px}
.ps-fields label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#64748B;font-weight:700}
.ps-fields input[type=date]{width:150px}
.ps-fields .ps-note{flex:1;min-width:200px}
.ps-fields .ps-done{flex-direction:row;align-items:center;gap:6px;font-size:13.5px;color:var(--ink);padding-bottom:8px}
.ps-done input{width:17px;height:17px;accent-color:#16A34A}
.ps-todo{margin:6px 0 8px;padding-left:18px;font-size:13.5px;color:#475569;line-height:1.6}
.done .ps-todo{opacity:.7}
@media (max-width:760px){.pn-prog{display:none}.pn-todo,.pn-docs{margin-left:0}}

/* ── 안건: 의견 검토결과 ── */
.mh-violet{border-top:4px solid #7C5CFF}.mh-violet .mh-ico{background:#7C5CFF}
.mh-violet~.fblock .fh-ico{background:#F0EBFF;color:#6E4BF2}
.ag-grp.g-violet .ico{color:#7C3AED}.ag-grp.g-violet.on{background:#F0EBFF;color:#6D28D9}
.op-drop{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1.5px dashed #C4B5FD;border-radius:12px;background:#FAF8FF;cursor:pointer;margin-bottom:10px}
.op-drop:hover,.op-drop.drag-on{background:#F0EBFF;border-color:#7C3AED;border-style:solid}
.op-drop .ico{width:20px;height:20px;color:#7C3AED;flex:none}
.op-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
.op-row{border:1px solid #E3E8F2;border-radius:12px;padding:10px 12px;background:#fff}
.op-row.acc{border-color:#BDE9D1;background:#F7FCF9}.op-row.rej{border-color:#F5C2CF;background:#FFF8FA}
.op-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.op-top .it-no{font-size:11.5px;font-weight:800;color:#fff;background:#8B7CF6;border-radius:6px;min-width:22px;text-align:center;padding:2px 6px}
.op-top input[type=text]{width:180px}
.op-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.op-grid label,.op-note{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;color:#64748B}
.op-grid textarea{min-height:72px;resize:vertical;font:inherit;font-size:14px}
.op-note{margin-top:6px}
@media (max-width:900px){.op-grid{grid-template-columns:1fr}}

/* ── 인용 조문 확인 ── */
.cite-grp{margin-top:14px}
.cite-grp h3{display:flex;align-items:center;gap:6px;font-size:14.5px;margin:0 0 6px}
.cite-grp h3 .ico{width:16px;height:16px;color:#0F8A74}
.cite-grp h3 b{font-size:12px;background:#E3F7F3;color:#0F766E;border-radius:999px;padding:1px 8px}
.cite-grp ul{margin:0;padding-left:18px;line-height:1.9;font-size:14px}
.hint-line{display:flex;align-items:center;gap:6px;margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#EEF6FF;color:#1D4ED8;font-size:13px}
.hint-line .ico{width:15px;height:15px;flex:none}

/* ── 유사 규정 비교 ── */
.sim-form{display:flex;gap:8px;margin:6px 0 10px}
.sim-form input{flex:1}
.sim-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px;margin:8px 0 10px}
.sim-item{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid #E3E8F2;border-radius:12px;background:#fff}
.sim-chk{display:flex;gap:8px;align-items:flex-start;cursor:pointer}
.sim-chk input{width:16px;height:16px;margin-top:3px;accent-color:#2563EB}
.sim-arts{display:flex;flex-wrap:wrap;gap:4px}
.sim-art{font-size:12px;background:#F1F5FB;border-radius:6px;padding:2px 7px;color:#475569}
.sim-acts{display:flex;gap:6px;flex-wrap:wrap}
.btn.pri-soft{background:#EEF4FF;border:1.5px solid #BFD0F0;color:#1D4ED8;box-shadow:none}
.cmp-box{margin-top:12px}
.cmp-wrap{overflow-x:auto;border:1px solid #E3E8F2;border-radius:12px}
.cmp-t{border-collapse:collapse;min-width:100%;font-size:13px}
.cmp-t th,.cmp-t td{border-bottom:1px solid #EEF2F7;border-right:1px solid #EEF2F7;padding:8px 10px;vertical-align:top;text-align:left;min-width:220px}
.cmp-t thead th{background:#F5F8FF;position:sticky;top:0;font-size:13px}
.cmp-t .cmp-topic{min-width:110px;width:110px;background:#F8FAFC;font-weight:800;color:#334155}
.cmp-t .base{background:#F2F8FF}
.cmp-t tr.solo{display:none}
.cmp-box.show-solo .cmp-t tr.solo{display:table-row}
.cmp-t tr.solo td,.cmp-t tr.solo th{opacity:.75}
.cmp-art{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.cmp-art b{font-size:12.5px;color:#1E3A8A}
.cmp-art span{color:#475569;line-height:1.5}
.cmp-box>.btn{margin-top:8px}

/* ── 규정 전체 점검 ── */
.top-seg{margin:0}
.top-seg button{display:inline-flex;align-items:center;gap:6px}
.top-seg .ico{width:16px;height:16px}
.fc-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:4px 0 14px}
.fc-cat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid #E3E8F2;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit}
.fc-cat b{font-size:20px;color:#1D4ED8}
.fc-cat>span{font-weight:800;font-size:13.5px}
.fc-cat .meta{font-weight:400;font-size:11.5px}
.fc-cat:hover{border-color:#8DB0FF}
.fc-cat.on{border:1.5px solid #2563EB;background:#EEF4FF}
.fc-t td{vertical-align:top}

/* ── 미리보기 창 ── */
.modal.wide{width:min(760px,100%)}
.doc-pre{white-space:pre-wrap;font:inherit;font-size:14px;line-height:1.75;background:#F8FAFC;border:1px solid #E3E8F2;border-radius:10px;padding:14px 16px;max-height:55vh;overflow:auto}
.op-top select{width:auto;min-width:118px;flex:none}
.op-top input[type=text]{flex:none}

/* 새 디자인(W5)용 표기: 기존 디자인에서는 숨김 */
.brand i{font-style:normal}
.brand .c-en{display:none}

/* 학교 규정 보기: 왼쪽 찾기 · 오른쪽 보기(첫 화면은 최근 공포·개정 규정, 담당 규정) */
.regs-split{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:1000px){.regs-split{grid-template-columns:1fr}}
.regs-view{min-width:0}
.rv-home .rh-total{display:flex;align-items:baseline;gap:10px;margin:2px 0 18px}
.rv-home .rh-total b{font-family:var(--w-num,inherit);font-size:44px;font-weight:500;line-height:1;color:var(--w-acc,#2554F0)}
.rv-home .rh-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:24px}
.rv-home h3{font-size:15px;margin:0 0 8px}
.rh-list{list-style:none;margin:0;padding:6px;border-radius:14px;background:var(--w-panel,#F8FAFC);counter-reset:rh}
.rh-list li{counter-increment:rh}
.rh-list button{display:flex;align-items:baseline;gap:12px;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:10px;font:inherit;color:inherit;cursor:pointer}
.rh-list button::before{content:counter(rh,decimal-leading-zero);font-family:var(--w-mono,monospace);font-size:11px;color:var(--w-mute,#94A3B8);flex:none}
.rh-list .rh-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.rh-list .meta{flex:none;font-size:12px}
.rh-list button:hover{background:var(--w-tint,#EEF4FF);color:var(--w-acc,#2554F0)}
html:not([data-design="w5"]) .regs-find,html:not([data-design="w5"]) .regs-view{background:#fff;border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;box-shadow:var(--sh-1)}

/* 절차 진행(2026-10-23): 위 한 줄 요약 + 왼쪽 단계 메뉴 + 고른 단계 내용 */
.sec-nav-h{display:none}
.proc-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:16px 0 14px;padding:12px 16px;border-radius:14px;background:linear-gradient(135deg,#EEF4FF,#F5F0FF)}
.proc-top.all-done{background:#F0FBF5}
.proc-top .pt-k{font-size:12.5px;font-weight:700;color:#2563EB}
.proc-top>b{font-size:16px}
.proc-top .pn-prog{margin-left:auto;display:flex;align-items:center;gap:10px;width:auto}
.proc-top .pn-prog .bar{display:block;width:160px;margin:0}
.proc-nav .sec-nav-i>span{display:flex;flex-direction:column;gap:1px;white-space:normal}
.proc-nav .sec-nav-i small{font-size:11.5px;font-weight:500;opacity:.75}
.proc-d{padding:4px 2px}
.pd-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #E3E8F2}
.pd-no{font-size:12px;font-weight:700;color:#2563EB}
.pd-head h2{margin:2px 0 0;font-size:21px}
.pd-grid{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px 18px;align-items:center}
.pd-l{font-size:13px;font-weight:600;color:#64748B;align-self:start;padding-top:8px}
.pd-grid .ps-todo{margin:0;padding:6px 0 0 18px}
.pd-grid .ps-fields{margin:0;align-items:center}
.pd-grid .ps-note{width:100%}
.pd-grid .ps-mode{margin:0}
.ps-fields input[type=month]{width:160px}
.pd-grid .ps-done{display:flex;align-items:center;gap:8px;font-size:14px}
.pd-move{display:flex;justify-content:space-between;margin-top:22px;padding-top:12px;border-top:1px solid #EEF1F6}

/* 내 작업: 상태 줄(전체·작성 중·검토 중·완료) + 상위법 개정 반영일 때 묶어 보기 */
.jf-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 10px}
.jf-st{display:flex;flex-wrap:wrap;gap:4px}
.jf-st button{border:0;background:transparent;padding:6px 12px;border-radius:8px;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink-3);cursor:pointer}
.jf-st button b{margin-left:4px;font-weight:700;color:var(--ink-3)}
.jf-st button.on{background:#EEF4FF;color:#1D4ED8}.jf-st button.on b{color:#1D4ED8}
.jf-view:empty{display:none}

/* AI 수정·추가 요청(2026-10-26): 현재 개정 내용 → 상위법 개정 내용 → AI 검토 결과·확인할 점 → AI에게 추가 요청 */
.ai-flow .ask-step{padding:14px 0;border-top:1px solid #EEF2F7}
.ai-flow .ask-step:first-child{border-top:0}
.upl-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;font-size:15px}
.upl-head>.ico{width:18px;height:18px;color:#3552E0}
.upl-d{font-size:12.5px;font-weight:600;color:#475569;background:#EEF2F7;border-radius:999px;padding:2px 10px}
.upl-why{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:10px 0 8px;font-size:14px}
.upl-k{font-size:12px;font-weight:700;color:#3552E0;margin-right:2px}
.upl-ref b{color:#1A1F2C}
.upl-art{margin:8px 0 10px}
.upl-art-h{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:6px;font-size:14px}
.up-view-btn{margin-top:6px;background:#EEF2FF!important;color:#3552E0!important;border:1px solid #CDD6F2!important;font-weight:600}
.up-view-btn .meta{font-weight:400;color:#5B6478}
.ai-sum p{margin:4px 0 0;font-size:14.5px;line-height:1.75}
.ai-sum ul{margin:6px 0 0;padding-left:18px}
.ai-checks{list-style:none;margin:10px 0 0;padding:0}
.ai-checks li{display:flex;gap:8px;align-items:flex-start;padding:7px 0;border-top:1px dashed #E3E8F2;font-size:14px;line-height:1.6}
.ai-checks li:first-child{border-top:0}
.ai-checks .ico{flex:none;width:16px;height:16px;margin-top:3px;color:#E07A1F}
.ai-flow .redraft{margin-top:8px}
.ask-hist-h{margin:14px 0 6px;font-size:13px;font-weight:700;color:#5B6478}
.lawpair.one{grid-template-columns:minmax(0,1fr)}
/* 한글은 어절 단위로 줄바꿈(모든 화면) */
body{word-break:keep-all;overflow-wrap:break-word}
.upl-art>summary{cursor:pointer;list-style:none}
.upl-art>summary::-webkit-details-marker{display:none}
.upl-art>summary::before{content:"▾";color:#9AA3B5;font-size:12px;margin-right:2px}
.upl-art:not([open])>summary::before{content:"▸"}
.ai-checks .dash{flex:none;font-style:normal;color:#9AA3B5;width:10px}
/* 국가법령정보센터 바로가기 */
.law-go{display:inline-flex;align-items:center;font-size:12.5px;font-weight:600;color:#3552E0;white-space:nowrap;margin-left:4px;vertical-align:middle}
.law-go:hover{text-decoration:underline;text-underline-offset:3px}
.drawer-head #ud-title{flex:1}
.drawer-head #ud-go{margin-right:12px}
.law-hero h2 .law-go{font-size:13px;font-weight:600}

/* 처리 상태 줄: 화면 아래에 붙이지 않고 상세 내용 끝에 */
.review-bar{position:static!important;box-shadow:none}
/* 상위법: 내 작업에서 법령을 열면 그 법령만(조회 조건·목록 숨김) */
.up-focus>section.card:not(#ud):not(#in-res){display:none}
.in-focus .in-tabs,.in-focus #in-body{display:none}
.up-focus-bar{display:flex;gap:8px;align-items:center;margin:0 0 6px}
/* 법령 상세: 왼쪽 메뉴를 눌러도 늘 같은 위치(법령 이름부터)에서 보이게 — 내용이 짧아도 화면 높이 확보 */
#ud,#in-res{min-height:calc(100vh - var(--gnb-h, 60px));scroll-margin-top:calc(var(--gnb-h, 60px) + 12px)}
.hero-acts{gap:6px;flex-wrap:wrap;justify-content:flex-end}
/* 상위법 법령 상세: [완료 처리 ▾] → 작업 완료 / 해당 없음 */
.done-menu{position:relative}
.done-menu>summary{list-style:none;cursor:pointer}
.done-menu>summary::-webkit-details-marker{display:none}
.dm-caret{font-size:10px;margin-left:2px}
.dm-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:260px;padding:6px;border-radius:12px;background:#fff;border:1px solid #E3E8F2;box-shadow:0 12px 28px -12px rgb(23 40 90 / .3)}
.dm-pop button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;border:0;background:transparent;padding:9px 12px;border-radius:9px;font:inherit;cursor:pointer}
.dm-pop button b{font-size:14px;font-weight:600}
.dm-pop button span{font-size:12px;color:#7A8396}
.dm-pop button:hover{background:#EEF2FF}
.dm-pop button:hover b{color:#3552E0}
/* 상위법 반영 작업 완료 결과(개정·해당 없음) */
.badge.b-na{background:#F1F3F7;color:#5E6679}
.oc-pick{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.oc-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #E3E8F2;border-radius:12px;cursor:pointer}
.oc-opt:has(input:checked){border-color:#8DA2F0;background:#F3F6FF}
.oc-opt input{margin-top:4px;accent-color:#3552E0}
.oc-opt>span{display:flex;flex-direction:column;gap:2px}
.oc-opt b{font-size:14.5px}
.oc-opt span span{font-size:12.5px;color:#6B7387}
.oc-note{margin-bottom:6px}
/* 내 작업: 제목·검색 조건(이름·수정일)을 위에 두고, 그 아래 왼쪽 메뉴와 목록(조건은 메뉴 전체에 공통) */
.jobs-page .job-filter{margin:0 0 16px}
.jobs-page .page2.full{margin:0;grid-template-columns:200px minmax(0,1fr);gap:24px}
.jobs-page .page2.full>.subnav{position:sticky;top:calc(var(--gnb-h,60px) + 14px);height:auto;padding:4px 0;border:0}
.jobs-page .page2.full>.page-main{padding:0}
/* 규정 전체 점검: 안내 + [다시 점검] 한 줄 */
.fc-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fc-head .lead{flex:1 1 320px;margin:0}
/* 규정 전체 점검: 규정별 한 줄, 항목은 그 안에 */
.fc-reg .meta{display:block;margin-top:4px}
.fc-items{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fc-items li{display:grid;grid-template-columns:minmax(110px,auto) auto 1fr;gap:10px;align-items:baseline}
.fc-at{background:none;border:0;padding:0;font:inherit;color:var(--primary);cursor:pointer;text-align:left;white-space:nowrap}
.fc-at:hover{text-decoration:underline}
.pager .pg-gap{padding:0 4px;color:var(--ink-3);align-self:center}
.pager .btn[disabled]{opacity:.4}
@media (max-width:760px){.fc-items li{grid-template-columns:1fr}}
/* AI 추천 영향 규정: 이름과 관련도 배지 사이 간격 */
.impact .row.between > span > .badge{margin-left:10px}
.fc-head .fc-when{white-space:nowrap}
/* 점검 결과 안내(규정 보기 옆 창 위 · 직접 수정 편집 칸 위) */
.fc-note{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;margin:0 0 10px;border-radius:10px;background:var(--primary-l);border:1px solid var(--primary-b);font-size:14px;line-height:1.6}
.fc-note svg{flex:none;width:18px;height:18px;margin-top:3px;color:var(--primary)}
.fc-note b{display:block;margin-bottom:2px}
.fc-note span{display:block}
#dw-note .fc-note{margin:0 20px 6px}

/* 규정 직접 등록(담당 규정) */
.ru-form{display:grid;gap:14px}
.ru-files{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ru-slot .fh-title{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ru-slot .req{font-style:normal;font-size:12px;color:var(--primary);font-weight:600}
.ru-meta{display:grid;grid-template-columns:2fr 1fr 170px auto;gap:12px;align-items:end}
.ru-meta .field{margin:0}
.ru-h{margin:22px 0 8px;font-size:15px}
.ru-h b{color:var(--primary);margin-left:4px}
.ru-ok{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--add-l);border:1px solid color-mix(in srgb,var(--add) 30%,transparent)}
.ru-ok>.ico{width:20px;height:20px;color:var(--add);flex:none}
.ru-ok>div{flex:1 1 300px}
.ru-ok b,.ru-ok span{display:block}
.ru-ok .warn-t{color:var(--warn)}
.tag-up{background:#EDE9FE;color:#5B21B6}
[data-ru-drop].drag-on .att-drop,.att-drop.drag-on{background:#EEF4FF;border-color:#2563EB}
@media (max-width:900px){.ru-files,.ru-meta{grid-template-columns:1fr}}
/* 화면 설명 아래 참고 한 줄(※) */
.lead-note{margin:4px 0 0;font-size:13.5px;color:var(--ink-2)}
.h2-note{margin-left:12px;font-size:13px;font-weight:400;color:var(--ink-3);letter-spacing:0}
.lead-wrap{margin:0 0 20px}
.lead-wrap .lead{margin:0}
.nx{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.nx-name{color:var(--ink);word-break:keep-all}
.nx-due{font-size:12px;font-weight:500;color:var(--primary)}
.nx-due.soon{color:#1D4ED8}
.nx-due.late{color:#E5484D}
.nx-need{font-size:12px;font-weight:500;color:#2554F0;background:#EAF0FF;border-radius:999px;padding:1px 8px}
.nx-cell{min-width:120px}
.op-applied{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--ink-2);white-space:nowrap}
/* 에이전트 작업 진행 창(AI 초안): 머리(경과 시간) · 진행 막대 · 단계 타임라인 · 관련 자료 · 결과 요약 */
.modal.agent-run{width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow-y:auto;padding:24px 28px 18px;border-radius:18px}
.ar-head{display:flex;align-items:center;gap:14px}
.ar-orb{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#3552E0,#7C6CF0);box-shadow:0 6px 18px rgba(53,82,224,.28)}
.ar-orb .ico{width:22px;height:22px}
.ar-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ar-title b{font-size:18px;letter-spacing:-.3px}
.ar-title span{font-size:12.5px;color:var(--ink-3)}
.ar-clock{display:flex;align-items:baseline;gap:3px;color:var(--primary)}
.ar-clock b{font-family:"Oswald","Pretendard Variable",sans-serif;font-size:30px;font-weight:600;line-height:1}
.ar-clock span{font-size:13px;color:var(--ink-3)}
.ar-prog{display:flex;align-items:center;gap:12px;margin:16px 0 12px}
.ar-bar{flex:1;height:6px;border-radius:99px;background:#E8ECF6;overflow:hidden}
.ar-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#3552E0,#7C6CF0);transition:width .5s ease}
#ar-pct{font-size:12.5px;color:var(--ink-2);white-space:nowrap}
.ar-intent{background:#F5F7FC;border-radius:12px;padding:9px 14px;margin-bottom:14px}
.ar-intent span{font-size:12px;font-weight:700;color:var(--primary)}
.ar-intent p{margin:3px 0 0;font-size:14px;line-height:1.55;word-break:keep-all}
.ar-tl{list-style:none;margin:0;padding:0}
.ar-tl li{position:relative;display:flex;gap:14px;padding:0 0 10px}
.ar-tl li::before{content:"";position:absolute;left:11px;top:26px;bottom:2px;width:2px;background:#E3E8F4}
.ar-tl li:last-child{padding-bottom:4px}
.ar-tl li:last-child::before{display:none}
.ar-tl li.ar-done::before{background:#BFD0FF}
.ar-node{position:relative;z-index:1;flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:2px solid #D5DBE8;background:#fff;color:#fff;font-size:13px;font-weight:800}
.ar-node .ico{width:14px;height:14px;stroke-width:3}
.ar-done .ar-node{background:var(--primary);border-color:var(--primary)}
.ar-run .ar-node{border-color:var(--primary);background:#fff}
.ar-run .ar-node::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--primary);animation:arPulse 1.2s ease-in-out infinite}
.ar-run .ar-node{box-shadow:0 0 0 0 rgba(53,82,224,.35);animation:arRing 1.6s ease-out infinite}
.ar-skip .ar-node{border-style:dashed;background:#F5F7FC}
.ar-error .ar-node{background:#E5484D;border-color:#E5484D}
@keyframes arPulse{0%,100%{transform:scale(.6);opacity:.6}50%{transform:scale(1);opacity:1}}
@keyframes arRing{0%{box-shadow:0 0 0 0 rgba(53,82,224,.35)}100%{box-shadow:0 0 0 10px rgba(53,82,224,0)}}
.ar-body{flex:1;min-width:0;padding-top:2px}
.ar-row{display:flex;align-items:center;gap:8px}
.ar-row .sp{flex:1}
.ar-row b{font-size:14.5px;font-weight:600}
.ar-wait .ar-row b{color:var(--ink-3);font-weight:500}
.ar-run .ar-row b{color:var(--primary)}
.ar-by{font-size:11px;font-weight:700;border-radius:999px;padding:1px 8px}
.ar-by.ai{background:#EFEBFF;color:#5B3FD6}
.ar-by.code{background:#E6F5F2;color:#0F766E}
.ar-wait .ar-by{opacity:.55}
.ar-t{font-size:12px;color:var(--ink-3);white-space:nowrap}
.ar-run .ar-t{color:var(--primary);font-weight:600}
.ar-d{margin-top:3px;font-size:13px;color:var(--ink-2);word-break:keep-all}
.ar-found{margin-top:6px;border-top:1px solid #EEF1F7;padding-top:12px}
.ar-found h4{margin:0 0 8px;font-size:12.5px;color:var(--ink-2);font-weight:700}
.ar-fg{display:flex;gap:10px;align-items:flex-start;margin-bottom:6px;font-size:13px}
.ar-fg > span{flex:none;width:150px;color:var(--ink-3)}
.ar-fg > div{display:flex;flex-wrap:wrap;gap:6px}
.ar-fg em{font-style:normal;background:#F2F5FB;border-radius:8px;padding:3px 9px;font-size:12.5px}
.ar-result{margin-top:14px;border-radius:14px;padding:14px 16px;background:linear-gradient(135deg,#EEF3FF,#F4F0FF)}
.ar-result > b{display:inline-flex;align-items:center;gap:6px;font-size:15.5px;color:var(--primary)}
.ar-result > b .ico{width:18px;height:18px}
.ar-result.none > b{color:#5B3FD6}
.ar-result.err{background:#FFF1F2}
.ar-result.err > b{color:#D93A4A}
.ar-result > p{margin:6px 0 0;font-size:13.5px;color:var(--ink-2);word-break:keep-all}
.ar-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.ar-tile{background:#fff;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.ar-tile b{font-family:"Oswald","Pretendard Variable",sans-serif;font-size:26px;font-weight:600;line-height:1.1}
.ar-tile span{font-size:12.5px;color:var(--ink-2)}
.ar-tile.t-blue b{color:var(--primary)}
.ar-tile.t-violet b{color:#6D4AE0}
.ar-tile.t-teal b{color:#0F8F80}
.ar-next{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:4px}
.ar-next li{position:relative;padding-left:16px;font-size:13.5px;word-break:keep-all}
.ar-next li::before{content:"→";position:absolute;left:0;color:var(--primary)}
.ar-result > .meta{margin:6px 0 0}
.ar-foot{display:flex;align-items:center;gap:8px;margin-top:18px}
.ar-foot .sp{flex:1}
@media (max-width:560px){.ar-fg{flex-direction:column;gap:4px}.ar-fg > span{width:auto}.ar-tiles{grid-template-columns:1fr}}
.op-note-row{display:flex;align-items:flex-end;gap:8px}
.op-note-row .op-note{flex:1}
.op-ai-note{margin:6px 2px 0;font-size:12.5px}
/* 불러오는 중: 오르내리는 점 세 개(시작 화면·최근 작업) */
.boot-dots{display:flex;justify-content:center;align-items:flex-end;gap:12px;height:72px;padding:120px 0 0}
.boot-dots i{width:12px;height:12px;border-radius:50%;background:var(--primary);opacity:.25;animation:bootdot 1.2s ease-in-out infinite}
.boot-dots i:nth-child(2){animation-delay:.15s}
.boot-dots i:nth-child(3){animation-delay:.3s}
.boot-dots.sm{justify-content:flex-start;height:40px;padding:14px 0 0;gap:8px}
.boot-dots.sm i{width:8px;height:8px}
@keyframes bootdot{0%,80%,100%{transform:translateY(0);opacity:.25}40%{transform:translateY(-12px);opacity:1}}
/* 확인 창(askConfirm): 브라우저 기본 확인 창 대신 */
.modal.ask-modal{width:min(460px,100%);padding:22px 24px 18px;border-radius:16px}
.ask-h{display:flex;align-items:center;gap:10px}
.ask-h b{font-size:16.5px;letter-spacing:-.2px;word-break:keep-all}
.ask-ico{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--primary-l);color:var(--primary)}
.ask-ico .ico{width:18px;height:18px}
.ask-h.danger .ask-ico{background:#FFF0F1;color:#E5484D}
.ask-list{margin:14px 0 0;padding:10px 14px 10px 30px;background:#F5F7FC;border-radius:10px;font-size:14px;line-height:1.6}
.ask-p{margin:10px 0 0;font-size:14px;color:var(--ink-2);line-height:1.55;word-break:keep-all}
.ask-modal .modal-f{margin-top:18px}
.btn.danger-btn{background:#E5484D;border-color:#E5484D;color:#fff}
.btn.danger-btn:hover{background:#D63B40}
/* 완료 처리된 작업: 열람 전용 안내 띠 · 수정 시도 시 [완료 취소]·안내 띠 깜빡임 */
.lock-note{display:flex;align-items:center;gap:10px;margin:6px 0 14px;padding:11px 16px;border-radius:12px;border:1px solid var(--w-hair2,var(--line));background:var(--w-panel,#fff);font-size:14px;color:var(--ink-2);word-break:keep-all}
.lock-note .ico{flex:none;width:18px;height:18px;color:var(--add)}
.lock-note b{color:var(--ink)}
.nudge{animation:nudgeRing .9s ease-out 3}
#btn-done.nudge{position:relative;z-index:2}
@keyframes nudgeRing{0%{box-shadow:0 0 0 0 rgba(53,82,224,.55);transform:scale(1)}25%{transform:scale(1.06)}60%{box-shadow:0 0 0 12px rgba(53,82,224,0);transform:scale(1)}100%{box-shadow:0 0 0 0 rgba(53,82,224,0)}}
.locked .cmp-tools,.locked #raw-toggle,.locked [data-art-add],.locked .fix-all-bar,.locked .add-btn{display:none!important}
.dirty.ok{color:#0F8A5F}
.locked .why-bar{display:none}
/* 학내 규정 개정 대응 */
.in-drop{margin-top:4px}
.in-drop.over{border-color:var(--primary);background:var(--primary-l)}
.in-note{margin:8px 2px 0}
.in-days{gap:8px;align-items:center;margin-bottom:10px}
.in-days .chip-btn{border:1px solid var(--line,#D9E0EC);background:#fff;border-radius:999px;padding:5px 14px;font:inherit;font-size:13px;cursor:pointer;color:var(--ink-2)}
.in-days .chip-btn.on{background:var(--primary);border-color:var(--primary);color:#fff}
#in-list tr[data-in-reg]{cursor:pointer}
#in-list tr.dim td{color:var(--ink-3)}
#in-list tr.on td{background:var(--primary-l)}
.in-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.in-head h2{margin:0;font-size:19px}
.in-kind{font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;background:var(--primary-l);color:var(--primary)}
.in-chg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0;font-size:14px}
.in-k{font-weight:700;color:var(--ink-2);margin-right:4px}
.in-k b{color:var(--primary)}
.in-lab{font-weight:600}
.in-unp{display:flex;align-items:center;gap:6px}
.in-unp .ico{width:15px;height:15px;color:#7C5CE0}
.in-h3{margin:18px 0 8px;font-size:15.5px}
.in-h3 b{color:var(--primary)}
.in-g{border:1px solid var(--w-hair2,var(--line));background:var(--w-panel,#fff);border-radius:12px;padding:10px 14px;margin-bottom:8px}
.in-g.mine{border-color:var(--primary-b)}
.in-g-h{display:flex;align-items:center;gap:8px}
.in-g-h .sp{flex:1}
.in-items{list-style:none;margin:8px 0 2px;padding:0;display:grid;gap:4px}
.in-items li{display:grid;grid-template-columns:minmax(120px,max-content) 1fr auto;gap:12px;align-items:baseline;font-size:13.5px;word-break:keep-all}
@media (max-width:640px){.in-items li{grid-template-columns:1fr;gap:2px}}
.in-q{flex:1 1 260px;min-width:200px;max-width:420px;margin-left:6px}
.in-days{flex-wrap:wrap}
#in-list .pager{align-items:center;gap:6px;margin-top:10px}
.in-drop:hover,.in-drop.drag-on{background:#EEF4FF;border-color:#2563EB;border-style:solid}
/* 학내 규정 대응: 입력(파일·글 함께) */
.in-input{padding:16px 18px}
.in-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:900px){.in-cols{grid-template-columns:1fr}}
.in-col{display:flex;flex-direction:column;gap:8px;min-width:0}
.in-col-h{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px;color:var(--ink-2)}
.in-col-h .ico{width:16px;height:16px;color:var(--primary)}
.in-col .in-drop{flex:1;min-height:190px;margin-top:0;flex-direction:column;justify-content:center;text-align:center;gap:6px}
.in-box{position:relative;flex:1;display:flex;min-width:0}
.in-box.has-file .in-drop{padding-bottom:64px}
.in-box #in-picked:not(:empty){position:absolute;left:12px;right:12px;bottom:12px}
.in-col .in-drop>span{display:flex;flex-direction:column;gap:4px}
.in-col textarea{width:100%;flex:1;min-height:190px;resize:vertical;font:inherit;font-size:14px;line-height:1.65;border:1px dashed var(--w-hair2,#C9D4E6);border-radius:12px;padding:12px 14px;background:var(--w-field,#fff);color:var(--ink)}
.in-col textarea:focus{outline:2px solid var(--primary-b,#9DB4FF);border-style:solid;border-color:var(--primary)}
.in-file-chip{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 12px;border-radius:10px;background:#EEF4FF;border:1px solid #CFDDFE;font-size:13.5px}
.in-file-chip .ico{width:16px;height:16px;color:#2563EB}
.in-file-chip b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.in-go-bar{gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}
/* 결과: 상위법 상세와 같은 구성 */
.in-hero{margin-bottom:8px}
.pill.soft{background:#EEF4FF;color:#1D4ED8;gap:5px}
.pill .ico{width:13px;height:13px}
.in-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:6px 0 14px}
@media (max-width:760px){.in-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.in-kpi{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;background:var(--w-field,#F6F8FC);border:1px solid var(--w-hair2,#E3E8F2)}
.in-kpi span{font-size:12.5px;color:var(--ink-3);font-weight:600}
.in-kpi b{font-size:24px;line-height:1.2;color:var(--ink)}
.in-kpi.hi b{color:#2554F0}
.in-kpi.mine b{color:#0B7FD1}
.in-notice{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;margin:0 0 10px;border-radius:12px;background:#EEF6FF;border:1px solid #CFE2FF;font-size:13.5px}
.in-notice .ico{width:18px;height:18px;color:#2563EB;flex:none;margin-top:1px}
.in-notice div{display:flex;flex-direction:column;gap:2px}
.in-notice span{color:var(--ink-2)}
.in-prev{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:#1D4ED8;white-space:nowrap}
.in-prev .ico{width:14px;height:14px}
.in-res .ud-sec{margin-top:16px}
.in-res .ud-main .ud-sec{margin-top:0}
.in-sub-h{font-size:13px;font-weight:700;color:var(--primary,#2554F0);margin:14px 0 6px}
.in-sub-h:first-of-type{margin-top:4px}
.in-why{display:flex;gap:8px;margin:6px 0 8px;padding:8px 12px;border-radius:10px;background:#F3F7FF;font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.in-why b{flex:none;color:#2554F0;font-weight:700}
.ud-chg.flash{box-shadow:0 0 0 3px #93C5FD;transition:box-shadow .3s}
/* 작업 생성 결과 창 */
.modal.mr2{width:min(600px,100%);padding:0 0 18px}
.mr2-top{display:flex;align-items:center;gap:12px;padding:20px 24px 14px;border-bottom:1px solid #EDF1F7}
.mr2-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex:none}
.mr2-ico .ico{width:22px;height:22px}
.mr2-top.ok .mr2-ico{background:#E3F8EC;color:#12865A}
.mr2-top.none .mr2-ico{background:#E2F3FF;color:#0B7FD1}
.mr2-top>div{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.mr2-top>div b{font-size:18px}
.mr2-top>div span{font-size:13px;color:var(--ink-3)}
.mr2-num{font-size:13px;color:var(--ink-3);white-space:nowrap}
.mr2-num b{font-size:22px;color:#2554F0;margin-right:2px}
.mr2-tags{display:flex;flex-wrap:wrap;gap:6px;padding:12px 24px 0}
.mr2-tags span{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;background:#EEF4FF;color:#1D4ED8}
.mr2-sec{margin:12px 24px 0;padding:12px 14px;border-radius:12px;background:#F6F8FC;font-size:14px;line-height:1.65}
.mr2-sec p{margin:0}
.mr2-sec p+p{margin-top:6px}
.mr2-h{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#1E3A8A;margin-bottom:6px;letter-spacing:-.01em}
.mr2-h .ico{width:15px;height:15px;color:#2554F0}
.mr2-cnt{font-size:11.5px;font-weight:700;background:#2554F0;color:#fff;border-radius:999px;padding:0 7px;line-height:18px}
.mr2-sec.q{background:#F0F7FF;border:1px solid #D6E6FF}
.mr2-sec.q ol{margin:0;padding-left:20px;display:grid;gap:4px}
.mr2-sec.warn{background:#EEF6FF;border:1px solid #CFE2FF}
.mr2-chgs{display:flex;flex-wrap:wrap;gap:6px}
.mr2-chg{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;border-radius:999px;background:#fff;border:1px solid #DCE5F3;font-size:13.5px}
.mr2-chg span{font-size:11.5px;font-weight:700;padding:1px 8px;border-radius:999px;background:#EEF4FF;color:#2554F0}
.mr2-chg.add span{background:#E3F8EC;color:#12865A}
.mr2-chg.del span{background:#FDECEC;color:#C81E1E}
.mr2-note{margin:12px 24px 0}
.mr2 .modal-f{padding:0 24px;margin-top:14px}
/* 규정 보기: 공포일·연혁 */
.dw-meta{padding:10px 20px 12px;border-bottom:1px solid #EDF1F7;display:flex;flex-direction:column;gap:8px}
.dw-meta .row{gap:6px;flex-wrap:wrap}
/* 제·개정 연혁: 위 표지와 같은 알약 모양 단추, 펼치면 같은 바탕의 판에 날짜·종류를 같은 색으로 */
.dw-hist summary{list-style:none;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:12.5px;font-weight:600;color:var(--ink-2);padding:4px 12px;border-radius:999px;background:#F2F5FA}
.dw-hist summary::-webkit-details-marker{display:none}
.dw-hist summary::after{content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s;opacity:.7}
.dw-hist[open] summary::after{transform:translateY(1px) rotate(-135deg)}
.dw-hist summary:hover{color:var(--ink)}
.dw-hist ul{list-style:none;margin:8px 0 0;padding:8px 14px;border-radius:12px;background:#F2F5FA;max-height:180px;overflow-y:auto;overflow-x:hidden;font-size:13px;color:var(--ink-3);display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
.dw-hist li{display:flex;align-items:baseline;gap:10px;padding:4px 0;min-width:0}
.dw-hist .dh-d{flex:none;font-variant-numeric:tabular-nums}
.dw-hist .dh-no{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.dw-hist ul{grid-template-columns:1fr}}
.in-items .linkish{color:#2554F0!important;font-weight:600;font-size:12.5px;white-space:nowrap;background:none;border:0;cursor:pointer;padding:0}
.in-items .linkish:hover{text-decoration:underline}
/* 직접 인용 규정 줄: 목록 기호 없이(변경 종류 배지 점만), 줄 아래 변경 조문 펼침 */
.impact ul.imp-list{list-style:none;padding-left:0}
.impact ul.imp-list>li{padding:5px 0;line-height:1.7}
.impact ul.imp-list>li+li{border-top:1px dashed var(--border)}
.impact .chg-tg{font-weight:700;margin-left:4px}
.impact .chg-tg[aria-expanded="true"]{color:#5E6679}
.chg-peek{margin:8px 0 4px;padding:10px 12px;border:1px solid #DCE6FF;border-radius:12px;background:#F7FAFF}
.chg-peek > .row{gap:8px;margin-bottom:6px;font-size:13.5px}
.chg-peek > .row{cursor:pointer;border-radius:8px}
.chg-peek > .row:hover > b{color:#2554F0}
.pk-close{flex:none;width:26px;height:26px;border:0;border-radius:6px;background:none;position:relative;color:var(--ink-3)}
.pk-close::before{content:"";position:absolute;left:9px;top:11px;width:7px;height:7px;border:solid currentColor;border-width:1.5px 0 0 1.5px;transform:rotate(45deg)}
.pk-close:hover{background:rgba(37,84,240,.08);color:#2554F0}
.chg-peek .lawpair{margin-top:6px;max-height:460px;overflow:auto}
/* AI 추천 카드: 근거가 된 변경 조문 펼침 */
/* AI 추천 카드: 관련 조 칩 · 근거 조문을 한 줄로(펼친 변경 조문은 카드 맨 아래) */
.rec-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:8px}
.rec-line .ref-chips{margin:0}
.rec-basis{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13.5px;padding-left:14px;border-left:1px solid var(--line)}
.rec-basis .rb-k{font-size:12.5px;color:var(--ink-3)}
.rec-basis .chg-tg{margin-left:0}
.rec-line > .rec-basis:first-child{padding-left:0;border-left:0}
/* AI 관련 규정 추천 진행: 상자 없이 화면 바탕 그대로, 한 줄 단계 표시 + 지금 하는 일 한 줄(작게) */
/* 진행 표시(AI 추천·조회·분석 공용): 가운데 반투명 판, 단계는 가로로 화살표 연결, 지금 단계는 점이 안에서 밖으로 퍼짐 */
.ai-prog2{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:880px;margin:18px auto;padding:24px 28px 20px;border:0;background:transparent;line-height:1.5}
.ap2-head{display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;color:#E58AA3}
.ap2-head .ico{width:17px;height:17px}
.ap2-head b{color:var(--ink);font-weight:600}
.ap2-el{margin-left:4px;font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.ap2-steps{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;row-gap:12px}
.ap2-steps li{display:grid;grid-template-columns:auto auto auto;align-items:center;column-gap:8px;row-gap:3px;font-size:13.5px;color:var(--ink-3);white-space:nowrap;text-align:left}
.ap2-arr{grid-column:1;grid-row:1;display:inline-flex;margin:0 12px 0 8px;color:#C5CCD8}
.ap2-arr svg{display:block}
.ap2-steps li.done+li .ap2-arr{color:#E58AA3}
.ap2-bar{grid-column:2;grid-row:1;position:relative;flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:0;background:rgba(30,40,60,.05);color:#B3BBC8;box-sizing:border-box;font-style:normal;transition:background .3s,color .3s}
.ap2-bar .ico{width:14px;height:14px}
.ap2-n{grid-column:3;grid-row:1}
.ap2-steps li.done .ap2-bar{background:rgba(229,138,163,.16);color:#D9668A;animation:ap2done .35s cubic-bezier(.3,1.4,.5,1)}
.ap2-steps li.run .ap2-bar{background:rgba(229,138,163,.12);color:#E58AA3}

@keyframes ap2spin{to{transform:rotate(360deg)}}
.ap2-steps li.error .ap2-bar{background:#E5484D;border-color:#E5484D}
.ap2-steps li.wait{opacity:.7}
.ap2-steps li.done .ap2-n{color:var(--ink-2)}
.ap2-steps li.run .ap2-n{font-weight:600;color:var(--ink)}
.ap2-r{grid-column:3;grid-row:2;min-height:18px;max-width:200px;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#C4607E}
.ap2-steps li.run .ap2-r{color:var(--ink-3)}
.ap2-live{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--ink-3);transition:opacity .22s ease}
.ap2-live.out{opacity:0}
@media (max-width:640px){.ap2-steps li .ap2-n{display:none}.ap2-steps li.run .ap2-n{display:inline}}
/* 에이전트 브리핑: 작업 화면 위 한 줄(기본 접힘), 펼치면 짧은 목록 — 개정안 작성보다 눈에 덜 띄게 */
.brief{margin:4px 0 12px;border:1px solid var(--w-hair2,var(--line));border-radius:10px;background:transparent;padding:7px 12px;font-size:13.5px}
.br-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:28px}
.br-head .sp{flex:1}
.br-tag{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:var(--ink-2);padding-right:10px;border-right:1px solid var(--w-hair2,var(--line))}
.br-tag .ico{width:14px;height:14px;color:#2554F0}
.br-next{display:inline-flex;align-items:baseline;gap:7px;flex-wrap:wrap;color:var(--ink);word-break:keep-all}
.br-k{font-size:12.5px;color:var(--ink-3)}
.br-next b{font-weight:700}
.br-due{font-size:12.5px;color:var(--ink-3)}
.br-due.late{color:#D93A3A}
.br-toggle{display:inline-flex;align-items:center;gap:10px;border:0;background:none;font:inherit;cursor:pointer;padding:2px 2px 2px 8px;border-radius:6px;color:var(--ink-2)}
.br-toggle:hover{background:var(--w-field,#F1F4F9)}
.br-cnt{display:inline-flex;gap:12px;font-size:12.5px;color:var(--ink-3)}
.br-cnt b{color:var(--ink);font-weight:700;margin-left:2px}
.br-chev{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.brief.open .br-chev{transform:translateY(1px) rotate(-135deg)}
.br-ok{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--ink-3)}
.br-ok .ico{width:13px;height:13px}
.br-list{list-style:none;margin:6px 0 2px;padding:0;border-top:1px solid var(--w-hair2,var(--line))}
.br-list li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;column-gap:10px;padding:6px 0;border-bottom:1px solid var(--w-hair,#EEF1F6);word-break:keep-all}
.br-list li:last-child{border-bottom:0}
.br-lv{font-size:12px;font-weight:700}
.lv-todo .br-lv{color:#2554F0}
.lv-warn .br-lv{color:#6B4EE6}
.lv-info .br-lv{color:#0E8A7D}
.br-t{color:var(--ink-2)}
.br-acts{display:inline-flex;gap:2px}
.br-a{border:0;background:none;font:inherit;font-size:12.5px;color:var(--ink-3);padding:3px 8px;border-radius:6px;cursor:pointer}
.br-a:hover{background:var(--w-field,#F1F4F9);color:var(--ink)}
.br-foot{display:flex;align-items:center;gap:12px;padding-top:4px;font-size:12.5px}
/* 예정 월 고르기(작은 달력) */
.mpick{position:relative;display:inline-block}
.mp-btn{display:inline-flex;align-items:center;gap:8px;min-width:150px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--w-field,#fff);font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.mp-btn .ico{width:15px;height:15px;color:#2554F0}
.mp-btn .mp-ph{color:var(--ink-3)}
.mp-btn .sp{flex:1}
.mp-btn:hover,.mpick.on .mp-btn{border-color:#9DB4FF}
.mp-pop{position:absolute;z-index:40;top:calc(100% + 6px);left:0;width:260px;padding:12px;border-radius:14px;background:#fff;border:1px solid #E1E7F3;box-shadow:0 12px 32px -12px rgba(30,40,70,.28)}
.mp-yr{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.mp-yr b{font-size:14.5px}
.mp-yr button{width:28px;height:28px;border:0;border-radius:8px;background:none;cursor:pointer;color:var(--ink-2);font-size:16px}
.mp-yr button:hover{background:#F1F4F9}
.mp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.mp-grid button{height:34px;border:0;border-radius:8px;background:none;font:inherit;font-size:13.5px;color:var(--ink);cursor:pointer}
.mp-grid button:hover{background:#EEF3FF}
.mp-grid button.now{box-shadow:inset 0 0 0 1px #9DB4FF;color:#2554F0}
.mp-grid button.on{background:#2554F0;color:#fff;font-weight:700}
.mp-foot{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid #EEF1F6}
.mp-foot button{border:0;background:none;font:inherit;font-size:12.5px;color:var(--ink-3);cursor:pointer;padding:4px 6px;border-radius:6px}
.mp-foot button:hover{background:#F1F4F9;color:var(--ink)}
.mp-foot [data-mp-now]{color:#2554F0}
.acts-sep{display:inline-block;width:1px;height:16px;margin:0 6px;background:var(--line)}
@media (prefers-reduced-motion:reduce){.ap2-steps li.run .ap2-bar{animation:none}}
/* 진행 단계 표지: 대기 = 회색 번호 원, 진행 = 번호 둘레를 꼬리 달린 분홍 빛이 돎, 완료 = 분홍 원 + 흰 체크(톡 튀며 바뀜) */
.ap2-steps li.run .ap2-bar::before{content:"";position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(from 0deg,rgba(229,138,163,0) 0deg,rgba(229,138,163,.15) 120deg,#E58AA3 330deg,rgba(229,138,163,0) 360deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.2px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.2px),#000 calc(100% - 2px));animation:ap2spin 1.1s linear infinite}
.ap2-steps li.run .ap2-bar::after{content:"";position:absolute;inset:-7px;border-radius:50%;box-shadow:0 0 0 0 rgba(229,138,163,.35);animation:ap2breath 2.2s ease-in-out infinite}
@keyframes ap2breath{0%,100%{box-shadow:0 0 0 0 rgba(229,138,163,0)}50%{box-shadow:0 0 0 4px rgba(229,138,163,.12)}}
@keyframes ap2done{from{transform:scale(.6)}to{transform:none}}
/* 연결선: 대기 회색, 앞 단계 완료 시 분홍, 다음 단계 진행 중이면 선 위로 빛이 흐름 */
.ap2-arr .ln,.ap2-arr .hd{stroke:currentColor;stroke-width:1.5}
.ap2-arr .fl{stroke:#E58AA3;stroke-width:2;stroke-dasharray:10 60;stroke-dashoffset:10;opacity:0}
.ap2-steps li.run .ap2-arr .fl{opacity:1;animation:ap2flow 1.4s ease-in-out infinite}
@keyframes ap2flow{from{stroke-dashoffset:10}to{stroke-dashoffset:-44}}
.ap2-steps li.done .ap2-arr,.ap2-steps li.run .ap2-arr{color:#F0B7C6}
@media (prefers-reduced-motion:reduce){.ap2-steps li.run .ap2-bar::before,.ap2-steps li.run .ap2-bar::after,.ap2-steps li.run .ap2-arr .fl,.ap2-steps li.done .ap2-bar{animation:none}}
/* 진행 중 단계 이름: 글자 위로 분홍 빛이 지나감 */
.ap2-steps li.run .ap2-n{background:linear-gradient(90deg,#1F2430 0%,#1F2430 38%,#F09AB3 50%,#1F2430 62%,#1F2430 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:ap2shine 2.2s linear infinite}
@keyframes ap2shine{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.ap2-steps li.run .ap2-n{animation:none;background:none;color:var(--ink)}}
/* 마우스 안내 말풍선(title 대신) */
.ui-tip{position:absolute;z-index:3000;max-width:min(460px,90vw);padding:6px 10px;border-radius:8px;background:#646E80;color:#FFFFFF;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:-.1px;white-space:pre-line;word-break:keep-all;box-shadow:0 4px 14px rgba(20,28,48,.16);pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}
.ui-tip.below{transform:translateY(-3px)}
.ui-tip.on{opacity:1;transform:none}
.ui-tip::after{content:"";position:absolute;left:var(--ax,50%);top:100%;width:8px;height:8px;margin:-4px 0 0 -4px;background:inherit;border-radius:0 0 2px 0;transform:rotate(45deg)}
.ui-tip.below::after{top:0;border-radius:2px 0 0 0}
html[data-tone="dark"] .ui-tip{background:#EEF1F8;color:#1A1F2C;box-shadow:0 6px 18px rgba(0,0,0,.4)}
