/* 약속 — 첫 화면 모양. 글꼴은 PC에 있는 것만(밖에서 받지 않음). 색은 @jayoo/look 제품색과 맞춘다. */
:root {
  --bg: #f5f7fa; --panel: #ffffff; --line: #e1e6ed; --text: #1c2430; --muted: #667085;
  --accent: #1f5fbf; --accent-weak: #e8f0fc; --danger: #c0392b; --warn-bg: #fff6db; --warn-line: #f0d68a;
  --word: #2b6cd4; --cell: #1f9d55; --slide: #e8772e; --pdf: #d64545; --hwp: #3fa9e0;
  --radius: 8px;
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--text); background: var(--bg); font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181f; --panel: #1b2029; --line: #2c3340; --text: #e6e9ee; --muted: #98a2b3; --accent: #6ea0f0; --accent-weak: #22324d; --warn-bg: #3a3218; --warn-line: #6b5a23; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.link { border: none; background: none; padding: 4px 6px; color: var(--accent); }
button.danger { color: var(--danger); }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=number] { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: var(--panel); min-width: 0; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 시험 서버 띠 */
.fake { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); padding: 4px 16px; font-size: 12px; text-align: center; }

/* 로그인 */
.login-wrap { min-height: 90vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 12px; }
.login h1 { margin: 0 0 4px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.login h1 img { width: 36px; height: 36px; }
.login label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.login .err { color: var(--danger); min-height: 1.2em; font-size: 13px; }
.login .hint, .login .tm { color: var(--muted); font-size: 12px; }
.login .row { display: flex; justify-content: space-between; align-items: center; }

/* 틀 */
.shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto 1fr; min-height: calc(100vh - 26px); }
header.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
header.top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
header.top .brand img { width: 28px; height: 28px; }
header.top .search { flex: 1; max-width: 480px; }
header.top .search input { width: 100%; }
header.top .me { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); }
nav.side { background: var(--panel); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
nav.side button { border: none; text-align: left; padding: 8px 12px; border-radius: 6px; background: none; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
nav.side button.on { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
nav.side button:disabled { color: var(--muted); cursor: default; }
nav.side .soon { font-size: 11px; color: var(--muted); }
nav.side .quota { margin-top: auto; padding: 12px; font-size: 12px; color: var(--muted); }
nav.side .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; }
nav.side .bar i { display: block; height: 100%; background: var(--accent); }
main { padding: 16px 20px; min-width: 0; position: relative; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 15px; margin-right: auto; }
.crumbs button { border: none; background: none; padding: 4px 6px; font-weight: 600; }
.crumbs span { color: var(--muted); }

table.files { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.files th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.files td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.files tr:last-child td { border-bottom: none; }
table.files tr:hover td { background: var(--accent-weak); }
td.name .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
td.name button { max-width: 100%; border: none; background: none; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.name button:hover { text-decoration: underline; }
td.acts { text-align: right; white-space: nowrap; }
td.small, th.small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.badge { flex: none; width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; position: relative; }
/* 제품 그림 — 새 로고(10-19 «비단 카드», 앞 10-12 판은 _archive, shared/design/<제품>/256x256.png → web/icons/). 둥근 그림이라 뒤 네모 색은 비움 */
.badge.jayooword, .badge.jayoosheet, .badge.jayooslide, .badge.jayoopdf, .badge.jayoohwp { background-position: center; background-size: contain; background-repeat: no-repeat; background-color: transparent !important; border-radius: 0; color: transparent; font-size: 0 !important; }
.badge.jayooword { background-color: var(--word); background-image: url(/icons/jayooword.png); } .badge.jayoosheet { background-color: var(--cell); background-image: url(/icons/jayoosheet.png); } .badge.jayooslide { background-color: var(--slide); background-image: url(/icons/jayooslide.png); }
.badge.jayoopdf { background-color: var(--pdf); background-image: url(/icons/jayoopdf.png); } .badge.jayoohwp { background-color: var(--hwp); background-image: url(/icons/jayoohwp.png); }
.badge.folder { background: #c9a227; }
.badge.other { background: #8a94a6; }
.lock { font-size: 11px; color: var(--danger); }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.dropping::after { content: attr(data-drop); position: absolute; inset: 8px; border: 2px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent-weak) 80%, transparent); display: grid; place-items: center; font-size: 18px; color: var(--accent); pointer-events: none; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #243447; color: #fff; padding: 10px 16px; border-radius: 8px; max-width: min(560px, calc(100vw - 32px)); opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 13px; }
#toast.on { opacity: 1; }
#toast.bad { background: var(--danger); }

/* 파일 정보 창 */
dialog.info { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; width: min(640px, calc(100vw - 32px)); max-height: 85vh; background: var(--panel); color: var(--text); }
dialog.info::backdrop { background: rgba(0,0,0,.35); }
.info-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; word-break: break-all; }
dialog.info h3, .admin h3 { font-size: 14px; margin: 18px 0 8px; }
.sec .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.sec select { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); }
table.mini { width: 100%; border-collapse: collapse; }
table.mini td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.mini tr.dim td { opacity: .5; }
td.mono { font-family: Consolas, "D2Coding", monospace; word-break: break-all; }
.tag { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 9px; background: var(--accent-weak); color: var(--accent); }
a.link { color: var(--accent); text-decoration: none; padding: 4px 6px; }
.admin table.files { margin-bottom: 8px; }

.pwform { display: grid; gap: 10px; }
.pwform label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.pwform label.check { display: flex; align-items: center; gap: 6px; }
.pwform .err, .login .err { color: var(--danger); min-height: 1.2em; font-size: 13px; }
.pwform .hint { color: var(--muted); font-size: 12px; }
.pwform .row { display: flex; justify-content: flex-end; }
table.files tr.dim td { opacity: .5; }

.ai-admin { max-width: 560px; margin-top: 8px; }
.ai-admin input[type=text] { width: 100%; }

.found .row { margin: 2px 0; }
.sec input[type=search] { border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: var(--panel); color: var(--text); }

/* 좁은 화면 (휴대폰) */
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; }
  nav.side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 6px; }
  nav.side .quota { display: none; }
  header.top { flex-wrap: wrap; }
  header.top .search { order: 3; max-width: none; flex-basis: 100%; }
  main { padding: 12px 16px; }
  .col-mod, .col-size, .col-ed { display: none; }
  td.acts { white-space: nowrap; }
  td.acts button { display: block; margin-left: auto; padding: 2px 0; }
  td.name .nm button { white-space: normal; word-break: break-all; }
}
.admin h3 .small { font-weight: 400; color: var(--muted); }

/* ── 위 메뉴 제품 칸 · 문서 탭 · 자유AI 칸 (09-30) ── */
header.top { flex-wrap: wrap; row-gap: 6px; }
header.top button.brand { border: none; background: none; padding: 0; cursor: pointer; color: inherit; }
nav.prodbar { display: flex; gap: 2px; flex-wrap: wrap; }
nav.prodbar .prod { display: flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; padding: 4px 10px; border-radius: 6px; white-space: nowrap; font-weight: 500; }
nav.prodbar .prod:hover { background: var(--accent-weak); }
nav.prodbar .prod.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
nav.prodbar .badge { width: 20px; height: 20px; font-size: 11px; }
.badge.jayoomd { background: #3f4a5a; border-radius: 50%; } /* 10-12 다섯 앱 새 아이콘(둥근 판)에 맞춤 */
/* 자유AI 알약은 부품(@jayoo/ai/button)이 제 모양을 그린다 — 여기서는 탭 줄 맨 끝으로 미는 빈칸만 */
.tabbar .tabfill { flex: 1 1 auto; min-width: 8px; }
#aipanel .aihead b { display: inline-flex; align-items: center; gap: 6px; }
.tabbar { grid-column: 1 / -1; display: flex; gap: 2px; padding: 4px 8px 0; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabbar .tab { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-bottom: none; border-radius: 6px 6px 0 0; background: #eef1f5; padding: 0 2px 0 0; max-width: 240px; flex: none; }
.tabbar button.tab { padding: 6px 12px; }
.tabbar .tab.on { background: var(--panel); position: relative; top: 1px; font-weight: 600; }
.tabbar .tname { display: flex; align-items: center; gap: 6px; border: none; background: none; padding: 6px 6px 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 190px; }
.tabbar .tx { border: none; background: none; padding: 2px 5px; color: var(--muted); font-size: 13px; }
.tabbar .tx:hover { color: var(--text); background: var(--accent-weak); }
.tabbar .badge { width: 18px; height: 18px; font-size: 10px; }
#frames { display: none; }
body.doc { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.doc #app { flex: none; }
body.doc .shell { min-height: 0; grid-template-rows: auto auto; }
body.doc nav.side, body.doc .shell > main { display: none; }
body.doc #frames { display: block; flex: 1; position: relative; min-height: 0; }
#frames iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; background: #fff; }
#frames iframe.on { display: block; }
.prodhome { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.prodhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prodhead h2 { margin: 0; font-size: 20px; }
.prodhead p { margin: 4px 0 0; }
.prodhead .primary.big { margin-left: auto; padding: 10px 18px; font-size: 15px; }
.badge.big { width: 44px; height: 44px; font-size: 20px; border-radius: 9px; }
.prodhome h3 { margin: 14px 0 0; font-weight: 500; }
#aipanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(0,0,0,.12); display: flex; flex-direction: column; z-index: 50; }
#aipanel .aihead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
#aipanel .aihead b { margin-right: auto; font-size: 15px; color: var(--accent); }
#aipanel .aimsgs { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
#aipanel .aimsg { display: grid; gap: 3px; }
#aipanel .aimsg b { font-size: 12px; color: var(--muted); }
#aipanel .aimsg .txt { white-space: pre-wrap; line-height: 1.55; padding: 8px 10px; border-radius: 8px; background: #f3f5f8; }
#aipanel .aimsg.user .txt { background: var(--accent-weak); }
#aipanel .aimsg button { justify-self: end; font-size: 12px; }
#aipanel .aiin { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); align-items: flex-end; }
#aipanel .aiin textarea { flex: 1; resize: vertical; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 720px) { nav.prodbar .prod { padding: 4px 6px; font-size: 13px; } header.top .search { order: 9; max-width: none; flex-basis: 100%; } }

/* 화면 말 고르기 (10-11, 다섯 말) — 새 CSS 는 start/end */
.langpick { font: inherit; font-size: 13px; padding-block: 3px; padding-inline: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: inherit; margin-inline-start: 4px; max-inline-size: 140px; }

/* 기관 이름·로고 · 새 문서 서식 (10-11) */
.org { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.org img { block-size: 24px; max-inline-size: 120px; object-fit: contain; }
.org.top-org { padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.org.login-org { justify-content: center; font-size: 15px; color: var(--text); }
.org.login-org img { block-size: 40px; max-inline-size: 200px; }
.orglogo-prev { block-size: 32px; max-inline-size: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.tplpick { margin-block: 12px; }
.tplrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl { display: inline-flex; align-items: center; gap: 8px; max-inline-size: 260px; }
.tpl .tplname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .org.top-org .orgname { display: none; } }

/* 감사 기록 찾기 (10-11) */
.auditbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-block: 6px; }
.auditbar select, .auditbar input { border: 1px solid var(--line); border-radius: 6px; padding-block: 5px; padding-inline: 8px; background: var(--panel); color: inherit; font: inherit; font-size: 13px; }
.auditbar input[type=search] { min-inline-size: 10em; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-block: 8px; }
.tpl { flex-direction: column; align-items: center; padding: 8px; inline-size: 132px; }
.tpl .tplprev { inline-size: 110px; block-size: 140px; object-fit: contain; object-position: top; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.tpl .tplname { max-inline-size: 116px; font-size: 13px; }

/* 보안 설정 · 로그인 안내문 · 끊기기 전 알림 (10-11, jayoosync 0.5.0) */
.login .banner { white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--warn-line, #e5c76b); background: var(--warn-bg, #fff8e1); border-radius: 8px; max-block-size: 12em; overflow: auto; }
.sec h4 { margin-block: 14px 4px; font-size: 13px; color: var(--muted); }
.secrow { display: grid; grid-template-columns: minmax(12em, 18em) 1fr; gap: 4px 12px; align-items: center; margin-block: 6px; }
.secrow > .small { grid-column: 2; }
.secrow textarea, .secrow input[type=text], .secrow input[type=number] { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: var(--panel); color: inherit; font: inherit; }
@media (max-width: 720px) { .secrow { grid-template-columns: 1fr; } .secrow > .small { grid-column: 1; } }
.idlewarn { position: fixed; inset-inline-end: 16px; inset-block-end: 16px; z-index: 9999; background: var(--panel); border: 2px solid var(--accent, #2563eb); border-radius: 10px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: flex; gap: 10px; align-items: center; max-inline-size: 420px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding-block: 1px; padding-inline: 8px 2px; margin: 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.chip .link { padding: 0 4px; }
/* 즐겨찾기 · 미리 보기 그림 (10-11) */
.star { border: none; background: none; padding: 0 2px; font-size: 16px; color: var(--muted); cursor: pointer; }
.star.on { color: #e3a008; }
.thumb { inline-size: 28px; block-size: 28px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
/* 알림함 (10-11) */
.bellwrap { position: relative; display: inline-flex; }
.bell { position: relative; border: none; background: none; font-size: 17px; padding: 2px 6px; cursor: pointer; }
.bell .count { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-inline-size: 16px; padding-inline: 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.notices { position: absolute; inset-block-start: 110%; inset-inline-end: 0; z-index: 50; inline-size: min(360px, 90vw); max-block-size: 60vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 8px; text-align: start; white-space: normal; overflow-wrap: anywhere; } /* 10-12 긴 알림이 잘리지 않게 */
.notices .nhead { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.notices ul { list-style: none; margin: 0; padding: 0; }
.notices li button { display: flex; flex-direction: column; gap: 2px; inline-size: 100%; text-align: start; border: none; background: none; padding: 8px 6px; border-radius: 6px; color: inherit; font: inherit; }
.notices li.unread button { background: var(--accent-weak, #e8f0fe); font-weight: 600; }
.notices li button:hover { background: var(--bg); }
/* 10-12 왼쪽 «내 폴더» 나무 · 나누기 고르기 */
nav.side .tree { display: flex; flex-direction: column; gap: 0; margin-block: 2px 6px; }
nav.side .tnode { display: flex; align-items: center; min-inline-size: 0; }
nav.side .tnode .tw { inline-size: 22px; padding: 4px 0; justify-content: center; color: var(--muted); flex: none; }
nav.side .tnode .tn { flex: 1; min-inline-size: 0; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 13px; }
nav.side .tnode .tn.on { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
nav.side .dropping, nav.side button.dropping { outline: 2px dashed var(--accent); outline-offset: -2px; }
tr[draggable="true"] { cursor: grab; }
.pickbar { margin-block: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.pickbar .chips:empty::after { content: '—'; color: var(--muted); }
.found .pick, .orgtree .pick { display: flex; gap: 8px; align-items: center; padding: 3px 4px; cursor: pointer; }
.orgtree { max-block-size: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin-block: 6px; }
.orgtree summary { cursor: pointer; padding: 3px 0; }
.orgtree details > .pick { padding-inline-start: 18px; }
@media (max-width: 760px) { nav.side .tree { display: none; } }
/* 10-12 나눈 사람 — [확인] 전 바뀔 줄 표시 */
table.mini tr.changed td { background: color-mix(in srgb, var(--accent, #2b6cb0) 10%, transparent); }
table.mini tr.gone td:not(.acts) { text-decoration: line-through; opacity: .55; }
/* 10-12 로그인 — 아이디 찾기 · 비밀번호 찾기 */
.findlinks { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted, #8a94a6); }
/* 10-12 로그인 아래 — 기관 알림 · 관리자 메일 (상표 문구 대신) */
.loginfoot { display: flex; flex-direction: column; gap: 4px; }
.loginfoot .notice { white-space: pre-wrap; }
/* 10-13 불러오는 화면 — 움직이는 대표 아이콘 (app.js 가 그리면 사라짐) */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted, #64748b); font-size: 15px; }
.boot img { inline-size: 128px; block-size: 128px; }
.boot img { animation: boot-breathe 1.6s ease-in-out infinite; } @keyframes boot-breathe { 50% { transform: scale(.93); opacity: .8; } } @media (prefers-reduced-motion: reduce) { .boot img { animation: none; } }

/* 10-19 저장 공간 보고서 */
.storage .stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px }
.storage .stats > div { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 8px 12px; min-width: 120px; display: flex; flex-direction: column }
.storage .stats b { font-size: 1.15em }
.storage .stats span { font-size: .85em; opacity: .75 }
.storage h4 { margin: 14px 0 6px; font-size: .95em }
.storage .scroll { overflow-x: auto }
.meter { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: rgba(127,127,127,.2); vertical-align: middle; overflow: hidden }
.meter i { display: block; height: 100%; background: #3a7bd5 }
.meter i.hot { background: #d9534f }

/* 10-19 두 판 비교 */
dialog.diff { width: min(960px, 96vw); max-height: 92vh; display: flex; flex-direction: column }
dialog.diff[open] { display: flex }
.diffhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 6px 0 8px }
.diffhead label { display: flex; flex-direction: column; gap: 2px }
.diffhead select { max-width: 100% }
.diffsum b.add { color: #1e7e34 } .diffsum b.del { color: #c62828 }
.diffbody { overflow: auto; flex: 1; min-height: 120px; border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 6px 0; font-size: .92em }
.diffbody > p { padding: 0 10px }
.dl { display: flex; gap: 6px; padding: 1px 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5 }
.dl > i { flex: 0 0 1em; font-style: normal; opacity: .7; user-select: none }
.dl.add { background: rgba(46, 160, 67, .14) }
.dl.del { background: rgba(229, 57, 53, .12) }
.dl.add mark { background: rgba(46, 160, 67, .38); color: inherit }
.dl.del mark { background: rgba(229, 57, 53, .32); color: inherit; text-decoration: line-through }
.dl.fold { color: #888; font-size: .88em; justify-content: center; background: rgba(127,127,127,.07) }
.dl.mark { font-weight: 600; margin-top: 6px; border-top: 1px dashed rgba(127,127,127,.4); padding-top: 4px }

/* 10-19 검토·승인 */
.side .count, .side button .count { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-inline-start: 6px; border-radius: 9px; background: #d9534f; color: #fff; font-size: .78em; text-align: center }
.reviews .rsec { margin: 10px 0 18px }
.rcard { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: var(--panel, transparent) }
.rcard.turn { border-color: #3a7bd5; box-shadow: 0 0 0 1px #3a7bd5 inset }
.rcard .rtop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.rcard .fname { font-weight: 600 }
.rcard .rnote { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere }
.rcard .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 }
.chip { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 1px 8px; font-size: .88em; overflow-wrap: anywhere }
.chip.ok { border-color: #2e7d32; color: #2e7d32 } .chip.no { border-color: #c62828; color: #c62828 }
.tag.res.approved { background: #2e7d32; color: #fff } .tag.res.rejected { background: #c62828; color: #fff } .tag.res.cancelled { opacity: .6 }
.sec.pick label.row { display: block; padding: 3px 0 }

/* 10-19 휴대폰 브라우저 화면 (추가 개발 ⑩) — 가로로 밀리지 않게, 손가락으로 누르기 쉽게 */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  .shell { min-width: 0; }
  .shell > * { min-width: 0; }
  header.top { gap: 6px 8px; padding: 8px 10px; }
  header.top .brand { font-size: 15px; }
  nav.prodbar { order: 2; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.prodbar::-webkit-scrollbar { display: none; }
  header.top .me { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; white-space: normal; gap: 4px 8px; font-size: 13px; }
  header.top .me > button { padding: 4px 8px; }
  nav.side { gap: 2px; scrollbar-width: none; }
  nav.side > button { flex: none; white-space: nowrap; }
  nav.side .tree, nav.side .ftree { display: none; }
  main { padding: 10px 10px 24px; }
  main .tools { gap: 6px; }
  main .tools .crumbs { flex-basis: 100%; overflow-x: auto; white-space: nowrap; }
  table.files th, table.files td { padding: 8px 6px; }
  td.acts { white-space: normal; }
  td.acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; }
  td.acts button, td.acts a { display: inline-block; margin: 0; padding: 6px 4px; }
  td.name { min-width: 0; overflow-wrap: anywhere; }
  .admin table.files, .storage .scroll { display: block; overflow-x: auto; }
  .admin table.files th, .admin table.files td { white-space: nowrap; }
  .admin table.files td.acts { display: table-cell; }
  dialog.info, dialog.diff { width: calc(100vw - 12px); max-width: none; max-height: calc(100vh - 12px); margin: 6px auto; padding: 12px; overflow: auto; }
  table.mini td.acts { display: table-cell; text-align: start; }
  table.mini td.acts a, table.mini td.acts button { padding: 4px 6px 4px 0; }
  dialog.ask { min-width: 0 !important; width: calc(100vw - 24px); }
  .diffhead label { flex: 1 1 100%; }
  .diffhead select { width: 100%; }
  .dl { padding: 1px 6px; font-size: .9em; }
  .rcard .tools button { flex: 1 1 auto; }
  .notices { position: fixed; inset-inline: 6px; inset-block-start: 56px; inline-size: auto; }
  .idlewarn { inset-inline: 8px; max-inline-size: none; }
  .tpl { inline-size: 112px; }
  #aipanel { width: 100vw; }
}

/* 10-19 MS 민감도 표시 — 모든 제품 같은 모양 (보호 = 빨간 테 방패 · 암호 = 주황 테 열쇠 · 레이블 = 회색 둥근 꼬리표) */
.mip { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; font-size: 12px; line-height: 20px; white-space: nowrap; border: 1px solid; vertical-align: middle }
.mip .mipico { display: inline-flex }
.mip.rms { color: #b42318; border-color: #b42318; background: #fef3f2 }
.mip.pw { color: #b54708; border-color: #f79009; background: #fffaeb }
.mip.label { color: #344054; border-color: #d0d5dd; background: #f2f4f7; max-inline-size: 14em; overflow: hidden; text-overflow: ellipsis }
@media (prefers-color-scheme: dark) { .mip.rms { background: #3a1513; color: #f97066 } .mip.pw { background: #3a2a10; color: #fdb022 } .mip.label { background: #222833; color: #cfd4dc; border-color: #3a4250 } }
.mipinfo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px }
.mipinfo .mip { margin: 0 }
