:root { --ink: #1c1c1e; --ink2: #555; --ink3: #8a8a8e; --line: #e4e4e7; --bg: #f4f4f5; --card: #fff; --acc: #e8482c; --acc2: #fff1ec; --ok: #17803d; --bad: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 22px; height: 56px; }
.brand { font-weight: 900; font-size: 17px; letter-spacing: -.5px; }
.brand span { background: var(--acc); color: #fff; border-radius: 6px; padding: 1px 6px; margin-right: 2px; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--ink2); font-weight: 600; }
.tabs button.on { background: var(--acc2); color: var(--acc); }
.top .me { margin-left: auto; color: var(--ink3); font-size: 13px; display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.card h3 { margin: 14px 0 8px; font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: #c8c8cc; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.dark { background: #333; border-color: #333; color: #fff; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.bad { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: default; }
.in { border: 1px solid #d4d4d8; border-radius: 9px; padding: 8px 11px; background: #fff; min-width: 0; }
.in:focus { outline: 2px solid #ffd2c5; border-color: var(--acc); }
textarea.in { width: 100%; resize: vertical; line-height: 1.55; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hint { color: var(--ink3); font-size: 12.5px; }
.tag { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: #f1f1f3; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.tag.g-문학 { background: #fdecef; color: #b4234a; } .tag.g-독서 { background: #e8f0fb; color: #1d4f91; } .tag.g-문법 { background: #e9f7ef; color: #17663a; } .tag.g-화법, .tag.g-작문 { background: #fff4dc; color: #8a5a00; }
.tag.ok { background: #e7f6ec; color: var(--ok); } .tag.bad { background: #fdecea; color: var(--bad); } .tag.run { background: #e8f0fb; color: #1d4f91; }
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.li:hover { background: #fafafa; }
.li .main { flex: 1; min-width: 0; }
.li .t { font-weight: 700; }
.li .p { color: var(--ink3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err { color: var(--bad); font-weight: 600; }
.ok-msg { color: var(--ok); font-weight: 600; }
.empty { color: var(--ink3); text-align: center; padding: 30px 0; }
.login { max-width: 360px; margin: 12vh auto; }
.login .card { padding: 30px; }
.login h1 { margin: 0 0 4px; font-size: 22px; }
.login .in { width: 100%; margin-top: 10px; }
.login .btn { width: 100%; margin-top: 14px; padding: 11px; }
/* NAS 탐색 */
.nas { border: 1px solid var(--line); border-radius: 10px; max-height: 420px; overflow: auto; }
.nas .crumb { position: sticky; top: 0; background: #fafafa; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; gap: 4px; flex-wrap: wrap; }
.nas .crumb a { cursor: pointer; color: #1d4f91; }
.nas .f { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid #f2f2f4; font-size: 13.5px; }
.nas .f.dir { cursor: pointer; font-weight: 600; }
.nas .f .sz { margin-left: auto; color: var(--ink3); font-size: 12px; }
.drop { border: 2px dashed #d4d4d8; border-radius: 12px; padding: 22px; text-align: center; color: var(--ink2); cursor: pointer; }
.drop.on { border-color: var(--acc); background: var(--acc2); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
/* 묶음 편집 */
.set { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fff; }
.set.off { opacity: .4; }
.set-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.psg-e { background: #fafafa; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.q-e { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.q-e .chs { display: grid; gap: 4px; margin: 6px 0; }
.q-e .chs .row { flex-wrap: nowrap; }
.q-e .chs .in { flex: 1; }
.q-e .num { font-weight: 800; width: 26px; }
.pv { font-family: 'Noto Serif KR', serif; font-size: 13.5px; line-height: 1.7; }
.pv .box { border: 1px solid #333; padding: 6px 10px; margin: 6px 0; font-size: 13px; }
.pv .ok { color: var(--bad); font-weight: 700; }
/* 문서 편집 */
.sec-e { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.it { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; background: #fafafa; margin-bottom: 5px; font-size: 13.5px; }
.it .main { flex: 1; min-width: 0; }
.it .p { color: var(--ink3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 16px; width: min(1000px, 100%); padding: 20px; }
.modal h2 { margin: 0 0 12px; font-size: 18px; }
.sticky-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 2px; display: flex; gap: 8px; justify-content: flex-end; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #ccc; }
.st-dot.ok { background: var(--ok); } .st-dot.bad { background: var(--bad); }
