/* 동학년 마당 화면 공통 스타일 (시안/공통.css · e-로그인.html · a-학년홈.html 값을 따름) */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: #f5f5f7; color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "SF Pro Text", sans-serif;
  font-size: 14px;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }

/* ---------- 로그인 · 가입 (E1~E4) ---------- */
body.auth { background: #35557d; }
.stage {
  min-height: 100vh; display: grid; place-items: center; padding: 20px 16px;
  background: linear-gradient(120deg,#35557d,#5e7fa8);
}
.card {
  background: #fff; border-radius: 18px; padding: 26px 28px; width: 100%; max-width: 380px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.card-head { text-align: center; margin-bottom: 18px; }
.card-head h1 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.card-head p { margin: 4px 0 0; color: #6e6e73; font-size: 12.5px; }
.card-head .icon { font-size: 34px; text-align: center; margin-bottom: 4px; line-height: 1.3; }
label.lbl, .lbl { display: block; font-size: 12px; font-weight: 600; color: #3a3a3c; margin: 12px 0 5px; }
.inp {
  display: block; width: 100%; border: 1px solid rgba(0,0,0,.16); border-radius: 9px;
  padding: 10px 12px; font-size: 13.5px; background: #fff; color: #1d1d1f; line-height: 1.4;
}
.inp::placeholder { color: #a1a1a6; }
.inp:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.inp[aria-invalid="true"] { border-color: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,.12); }
.inp:disabled { background: #fff; color: #1d1d1f; cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > div { min-width: 0; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #3a3a3c;
}
.select-wrap select:disabled { color: #1d1d1f; background: #f5f5f7; cursor: not-allowed; }
.msg { white-space: pre-line; border-radius: 8px; padding: 8px 11px; font-size: 12.5px; margin-top: 12px; line-height: 1.5; }
.msg.error { background: #fff0ef; color: #c4281c; }
.msg.warn { background: #fff4dc; color: #8a6500; }
.msg.info { background: #eef4fc; color: #245a9a; margin: 0 0 6px; }
.btn {
  display: block; width: 100%; margin-top: 16px; text-align: center; background: #0071e3; color: #fff;
  border: 0; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: #0066cc; }
.btn:disabled { background: #c7c7cc; cursor: not-allowed; }
.btn.plain { background: #f0f0f2; color: #1d1d1f; }
.btn.plain:hover { background: #e6e6ea; }
.foot { margin: 14px 0 0; font-size: 12px; color: #6e6e73; text-align: center; line-height: 1.55; }
.hint { font-size: 11.5px; color: #6e6e73; margin-top: 4px; min-height: 1.4em; }
.hint.good { color: #248a3d; }
.hint.bad { color: #c4281c; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #3a3a3c; margin-top: 12px; line-height: 1.5; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 15px; height: 15px; margin: 1px 0 0;
  border-radius: 4px; border: 1.5px solid #a1a1a6; background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.check input:checked { background: #0071e3; border-color: #0071e3; }
.check input:checked::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }
.check input:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }
.loading { text-align: center; color: #6e6e73; font-size: 13px; padding: 24px 0; }

/* ---------- 홈 틀 (시안 A 윗줄) ---------- */
body.home, body.app { background: #eceef1; }
.topbar {
  min-height: 56px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; padding: 0 28px; gap: 26px; position: relative;
}
.logo { font-weight: 800; font-size: 16px; white-space: nowrap; }
.logo small { color: #6e6e73; font-weight: 500; margin-left: 6px; font-size: inherit; }
.nav { display: flex; gap: 4px; }
.nav button, .nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: #3a3a3c; background: none;
  border: 0; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; line-height: inherit;
}
.nav button:hover, .nav a:hover { background: #f5f5f7; }
.nav button[aria-current="page"], .nav a[aria-current="page"] { background: #f0f0f2; font-weight: 700; color: #1d1d1f; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6e6e73; position: relative; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #35557d; color: #fff; display: grid;
  place-items: center; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; padding: 0;
}
.usermenu {
  position: absolute; right: 0; top: 40px; background: #fff; border-radius: 10px; min-width: 130px;
  box-shadow: 0 6px 22px rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.08); padding: 4px; z-index: 5;
}
.usermenu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 7px;
  padding: 8px 10px; font-size: 13px; cursor: pointer; color: #1d1d1f;
}
.usermenu button:hover, .usermenu button:focus-visible { background: #f0f0f2; }
.empty {
  max-width: 560px; margin: 90px auto 0; background: #fff; border-radius: 16px; padding: 40px 24px;
  text-align: center; color: #6e6e73; font-size: 15px; width: calc(100% - 32px);
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1d1d1f; color: #fff;
  border-radius: 10px; padding: 9px 16px; font-size: 13px; z-index: 9; max-width: calc(100% - 32px);
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 8px 16px; gap: 6px 12px; }
  .nav { order: 3; scrollbar-width: none; width: 100%; overflow-x: auto; margin: 0 -4px; padding-bottom: 4px; }
  .me .who { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .empty { margin-top: 40px; }
}
@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .inp { font-size: 16px; } /* 아이폰이 입력칸을 확대하지 않도록 */
}
.foot.gap { margin-top: 16px; }

/* 윗줄의 학년 AI 물음칸 (시안 A: 메뉴 오른쪽 · 내 영역 왼쪽). 아직 AI 가 없어 입력은 막혀 있다 */
.aibar {
  flex: 1; min-width: 0; max-width: 460px; margin-left: 18px; display: flex; align-items: center; gap: 8px;
  background: #f0f0f2; border-radius: 10px; padding: 7px 12px; font-size: 13px; color: #8e8e93;
}
.aibar b { color: #0071e3; font-weight: 600; white-space: nowrap; }
.aibar input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: 13px; color: #8e8e93;
  cursor: default; text-overflow: ellipsis;
}
.aibar input::placeholder { color: #8e8e93; opacity: 1; }
.aibar input:disabled { color: #8e8e93; -webkit-text-fill-color: #8e8e93; }
@media (max-width: 1100px) {
  /* 윗줄이 좁으면 메뉴 아래 한 줄로 내려간다 */
  .topbar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
  .aibar { order: 4; flex: 1 1 100%; max-width: none; margin-left: 0; }
}

/* ====================================================================
   3단계: 학년 일정 · 공지 (시안 A·D·F·G 값을 따름)
   ==================================================================== */
.page { width: auto; padding: 20px 28px 40px; }
body.home .page { padding-top: 14px; padding-bottom: 20px; }
.panel { background: #fff; border-radius: 16px; padding: 16px 18px; min-width: 0; }
.muted { color: #6e6e73; font-size: 12.5px; line-height: 1.5; }
.sbtn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 8px 14px; font-size: 13px;
  font-weight: 600; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #1d1d1f; cursor: pointer;
  text-decoration: none; line-height: 1.3; white-space: nowrap;
}
.sbtn:hover:not(:disabled) { background: #f5f5f7; }
.sbtn.primary { background: #0071e3; color: #fff; border-color: #0071e3; }
.sbtn.primary:hover:not(:disabled) { background: #0066cc; }
.sbtn.sm { padding: 5px 10px; font-size: 12px; font-weight: 500; }
.sbtn.danger { color: #ff3b30; border-color: rgba(255,59,48,.35); }
.sbtn:disabled { opacity: .5; cursor: not-allowed; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.pill.warn { background: #fff4dc; color: #a87a00; }
.pill.blue { background: #e8f1fc; color: #0071e3; }
.seg { display: inline-flex; background: #f0f0f2; border-radius: 8px; padding: 2px; font-size: 12px; font-weight: 500; }
.seg > span, .seg > a, .seg > button { padding: 3px 10px; border-radius: 6px; color: #6e6e73; background: none; border: 0; cursor: pointer; text-decoration: none; font-size: inherit; }
.seg > .on { background: #fff; color: #1d1d1f; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.arrow { color: #6e6e73; font-weight: 400; font-size: 13px; white-space: nowrap; }
.arrow button { background: none; border: 0; color: #6e6e73; cursor: pointer; padding: 0 6px; font-size: inherit; border-radius: 6px; }
.arrow button:hover { background: #f0f0f2; }
.arrow b { color: #1d1d1f; }
.loadmsg { text-align: center; color: #6e6e73; padding: 30px 0; font-size: 13px; }
.errbox { max-width: 560px; margin: 40px auto; background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; color: #6e6e73; }
.errbox .sbtn { margin-top: 14px; }

/* ---- 홈 (A) ---- */
.grid3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.col2 { grid-column: span 2; display: flex; flex-direction: column; }
.col2 > #month { flex: 1; display: flex; flex-direction: column; }
.col2 > #month > .month { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card3 { background: #fff; border-radius: 16px; padding: 16px 18px; min-width: 0; }
.card3 h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card3 h3 button.more { background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.card3 h3 .more { margin-left: auto; font-size: 12px; color: #0071e3; font-weight: 500; text-decoration: none; }
.card3 h3 .seg { margin-left: auto; }
.card3 h3 .seg + .more { margin-left: 12px; }
.crow { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); font-size: 13px; align-items: center; }
.crow:first-of-type { border-top: 0; }
.crow a { color: inherit; text-decoration: none; }
.crow a:hover { text-decoration: underline; }
.soon-card { color: #a1a1a6; font-size: 13px; padding: 18px 0 24px; text-align: center; }
.privacy { margin-top: 14px; }

.month { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto; grid-auto-rows: minmax(104px, 1fr); gap: 4px; }
.month .wd { text-align: center; font-size: 12px; color: #6e6e73; padding: 2px 0 4px; }
.month .wd.end { color: #c0c0c6; }
.month .cell { background: #fafafc; border-radius: 8px; padding: 4px 5px 5px; min-height: 104px; font-size: 11px; min-width: 0; overflow: hidden; }
.month .cell.other { background: transparent; color: #c0c0c6; }
.month .cell.off .n { color: #d6453d; }
.month .cell.wkend { background: #f4f4f6; }
.month .cell.thiswk { background: #eef4fc; }
.month .n { display: inline-block; font-size: 11.5px; font-weight: 600; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; margin-bottom: 2px; color: inherit; text-decoration: none; }
.month .cell.other .n { color: #c0c0c6; }
.month .cell.today .n { background: #0071e3; color: #fff; }
.month .e {
  display: block; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); border-radius: 3px;
  padding: 1px 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1d1d1f;
  text-decoration: none; font-size: 11px; line-height: 1.5; width: 100%; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; cursor: pointer;
}
button.e { display: block; }
.month .e.sel { box-shadow: 0 0 0 2px var(--c); }
.month .e.hol { background: transparent; border-left: 0; padding-left: 2px; color: #d6453d; cursor: default; }
.month .e.more { background: transparent; border-left: 0; color: #6e6e73; padding-left: 2px; }
.month.big { grid-auto-rows: minmax(112px, 1fr); }
.month.big .cell { font-size: 12px; }
.month.big .e { font-size: 12px; padding: 2px 6px; }
.legend { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; color: #6e6e73; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }
.legend .endnote { margin-left: auto; }

.wklist .day { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 7px 8px; border-radius: 10px; font-size: 12.5px; align-items: start; }
.wklist .day.today { background: #eef4fc; }
.wklist .day .d { color: #6e6e73; font-size: 12px; line-height: 1.5; }
.wklist .day.today .d { color: #0071e3; font-weight: 700; }
.wklist .ev { border-left: 3px solid var(--c); padding-left: 7px; margin-bottom: 3px; display: block; color: inherit; text-decoration: none; }
.wklist a.ev:hover { text-decoration: underline; }
.wklist .ev small { color: #6e6e73; margin-left: 4px; }
.wklist .ev.hol { border-left: 0; padding-left: 0; color: #d6453d; }
.wklist .none { color: #a1a1a6; }

/* ---- 학년 일정 (D) ---- */
.sched { display: grid; grid-template-columns: 1fr 290px; gap: 14px; align-items: start; }
.sched .panel { padding: 16px 18px; }
.sched .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sched .top h2 { margin: 0; font-size: 18px; }
.sched .top .arrow { font-size: 15px; }
.sched .top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wkscroll { overflow-x: auto; }
.wk { min-width: 640px; }
.wkhead, .wkbody { display: grid; grid-template-columns: 84px repeat(5, minmax(0, 1fr)); }
.wkhead .col { border-left: 1px solid rgba(0,0,0,.07); }
.wkhead .col.today, .wkbody .col.today { background: #f6f9fe; }
.wkhead .dh { height: 44px; text-align: center; padding-top: 6px; font-size: 12px; color: #6e6e73; }
.wkhead .dh span { display: block; }
.wkhead .dh b { display: block; font-size: 17px; color: #1d1d1f; line-height: 26px; }
.wkhead .col.today .dh b { display: inline-block; background: #0071e3; color: #fff; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; }
.wkhead .col.hol .dh b { color: #d6453d; }
.wkhead .col.hol.today .dh b { color: #fff; }
.wkhead .col .holname { font-size: 10.5px; color: #d6453d; display: block; line-height: 1.2; }
.allday { border-bottom: 1px solid rgba(0,0,0,.1); padding: 3px 4px; display: flex; flex-direction: column; gap: 2px; }
.chip-all {
  display: block; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 4px;
  padding: 3px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1d1d1f;
  border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; width: 100%; font-family: inherit;
}
.chip-all.sel { box-shadow: 0 0 0 2px var(--c); }
.wkbody .times { position: relative; }
.slot { position: absolute; left: 0; right: 6px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; border-top: 1px solid rgba(0,0,0,.1); }
.slot b { font-size: 12.5px; color: #1d1d1f; }
.slot small { font-size: 10.5px; color: #a1a1a6; }
.slot.lunch b { font-size: 11px; color: #a1a1a6; font-weight: 500; }
.slot.work { justify-content: flex-start; padding-top: 8px; }
.slot.work b { color: #35557d; }
.tick { position: absolute; right: 6px; font-size: 10.5px; color: #a1a1a6; }
.wkbody .col { border-left: 1px solid rgba(0,0,0,.07); position: relative; }
.wkbody .col > .lane { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(0,0,0,.1); }
.wkbody .col > .lane.lunch { background: repeating-linear-gradient(135deg,transparent 0 6px,rgba(0,0,0,.035) 6px 12px); }
.wkbody .col > .dash { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(0,0,0,.1); }
.blk {
  position: absolute; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 15%, #fff); border-radius: 6px;
  padding: 5px 7px; font-size: 12px; overflow: hidden; text-align: left; cursor: pointer; border-top: 0; border-right: 0; border-bottom: 0;
  font-family: inherit; color: #1d1d1f; z-index: 1;
}
.blk b { display: block; font-size: 12.5px; }
.blk small { display: inline; color: #5a5a60; font-size: 11px; }
.blk small + small::before { content: " · "; }
.blk.sel { box-shadow: 0 0 0 2px var(--c); z-index: 2; }
.nowline { position: absolute; left: 0; right: 0; border-top: 2px solid #ff3b30; z-index: 3; pointer-events: none; }
.nowline i { position: absolute; left: -5px; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; }
.sched .side h4 { margin: 0 0 8px; font-size: 13px; }
.sched .side .panel + .panel { margin-top: 14px; }
.fchk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.fchk i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.fchk[aria-pressed="false"] { color: #a1a1a6; }
.fchk[aria-pressed="false"] i { background: #fff; border: 1.5px solid #c7c7cc; }
.mychk { display: flex; align-items: center; gap: 8px; margin-top: 8px; cursor: pointer; font-size: 12.5px; color: #6e6e73; line-height: 1.5; }
.mychk input { accent-color: #0071e3; margin: 0; }
.sidenote { margin-top: 10px; border-top: 1px solid rgba(0,0,0,.07); padding-top: 10px; }
.detail .ttl { font-size: 16px; font-weight: 800; margin: 2px 0 4px; word-break: break-word; }
.detail dl { display: grid; grid-template-columns: 48px 1fr; gap: 6px 8px; margin: 10px 0; font-size: 12.5px; }
.detail dt { color: #6e6e73; }
.detail dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
.detail .btns { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail .hintline { color: #a1a1a6; font-size: 12.5px; }

/* ---- 모달 (G) 와 확인 창 ---- */
.overlay { position: fixed; inset: 0; background: rgba(50,60,75,.55); display: flex; align-items: flex-start; justify-content: center; padding: 22px 16px; overflow-y: auto; z-index: 20; }
.dialog { background: #fff; border-radius: 18px; width: 540px; max-width: 100%; padding: 22px 26px; box-shadow: 0 14px 40px rgba(0,0,0,.28); margin: auto; }
.dialog.small { width: 380px; }
.dialog h2 { margin: 0 0 4px; font-size: 19px; display: flex; align-items: center; }
.dialog h2 .x { margin-left: auto; color: #a1a1a6; font-size: 18px; font-weight: 400; background: none; border: 0; cursor: pointer; padding: 0 4px; line-height: 1; }
.dialog .lbl { margin: 14px 0 5px; }
.dialog .inp { border-radius: 9px; padding: 9px 12px; font-size: 13.5px; }
.dialog textarea.inp { resize: vertical; min-height: 40px; font-family: inherit; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.mb { margin-bottom: 8px; }
.chip {
  border: 1px solid rgba(0,0,0,.14); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #3a3a3c; background: #fff;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
}
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.chip.on { border-color: var(--c, #0071e3); background: color-mix(in srgb, var(--c, #0071e3) 14%, #fff); font-weight: 700; color: #1d1d1f; }
.chip.mode { border-radius: 8px; padding: 5px 12px; }
.chip.mode.on { border-color: #0071e3; background: #e8f1fc; color: #0071e3; }
.chip.per { border-radius: 8px; min-width: 52px; justify-content: center; padding: 7px 0; }
.chip.per.on { border-color: #0071e3; background: #e8f1fc; color: #0071e3; }
.chip.tgt.on { border-color: #0071e3; background: #e8f1fc; color: #0071e3; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
.dialog .hint { font-size: 11.5px; color: #6e6e73; margin-top: 5px; min-height: 0; }
.dialog .msg.warn, .dialog .msg.info, .dialog .msg.error { margin-top: 12px; font-size: 12px; padding: 7px 11px; }
.dialog .btnrow { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.dialog .btnrow .muted { font-size: 12px; }
.dialog .btnrow .right { margin-left: auto; display: flex; gap: 8px; }
.dialog.small p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.dialog.small .btnrow { margin-top: 18px; }

/* ---- 공지 (F) ---- */
.nhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.nhead h2 { margin: 0; font-size: 20px; }
.nhead .seg { font-size: 12.5px; margin-left: 8px; }
.nhead .seg > a { padding: 4px 12px; }
.nhead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nhead form { display: flex; }
.search { border: 1px solid rgba(0,0,0,.14); border-radius: 8px; padding: 7px 11px; font-size: 13px; width: 230px; background: #fff; }
.search:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.nlist .nrow { display: grid; grid-template-columns: 14px 1fr 150px 70px 74px; gap: 12px; align-items: center; padding: 14px 6px; border-top: 1px solid rgba(0,0,0,.06); font-size: 14px; color: inherit; text-decoration: none; }
.nlist .nrow.head { border-top: 0; color: #6e6e73; font-size: 12px; padding: 6px; }
.nlist a.nrow:hover { background: #fafafc; }
.nlist .nrow.pin { background: #fff8ea; }
.nlist .nrow.pin:hover { background: #fff3dc; }
.nlist .dot { width: 8px; height: 8px; border-radius: 50%; background: #0071e3; }
.nlist .ttl b { font-weight: 600; word-break: break-word; }
.nlist .nrow.read .ttl b { font-weight: 400; color: #3a3a3c; }
.nlist .who, .nlist .when { font-size: 12.5px; color: #6e6e73; }
.nlist .cnt { font-size: 12px; color: #6e6e73; }
.nlist .cnt b { color: #248a3d; }
.nlist .nrow .pill { margin-right: 4px; }
.pager { text-align: center; color: #6e6e73; font-size: 13px; margin-top: 12px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pager a, .pager span { padding: 3px 8px; border-radius: 6px; color: #6e6e73; text-decoration: none; }
.pager a:hover { background: #f0f0f2; }
.pager .cur { color: #1d1d1f; font-weight: 700; }
.pager .off { opacity: .35; }
.nread { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.nread .phead { display: flex; align-items: center; gap: 8px; }
.nread .ntitle { font-size: 22px; font-weight: 800; margin: 8px 0 4px; word-break: break-word; }
.nread .meta { color: #6e6e73; font-size: 12.5px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
.nbody { font-size: 14.5px; line-height: 1.8; padding: 16px 0; word-break: break-word; overflow-wrap: anywhere; }
.nbody ul { margin: 0; padding-left: 1.3em; }
.nbody p { margin: 0; min-height: 1.8em; white-space: pre-wrap; }
.nbody li { white-space: pre-wrap; }
.nbody a { word-break: break-all; color: #0071e3; }
.neigh { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(0,0,0,.08); margin-top: 16px; padding-top: 12px; font-size: 13px; color: #3a3a3c; }
.neigh a { color: inherit; text-decoration: none; }
.neigh a:hover { text-decoration: underline; }
.neigh .none { color: #6e6e73; }
.nread .side h4 { margin: 0 0 10px; font-size: 13px; }
.person { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; gap: 8px; }
.person .yes { color: #248a3d; white-space: nowrap; }
.person .no { color: #a1a1a6; }
.nread .side .btns { margin-top: 14px; display: flex; gap: 8px; }
.nread .side .muted { margin-top: 8px; }
.nwrite { max-width: 860px; margin: 0 auto; padding: 18px 22px; }
.nwrite h2 { margin: 0 0 12px; font-size: 20px; }
.nwrite .lbl { margin: 14px 0 5px; }
.nwrite .lbl.first { margin-top: 0; }
.nwrite .inp { padding: 10px 12px; font-size: 14px; }
.nwrite textarea.inp { min-height: 190px; line-height: 1.8; resize: vertical; font-family: inherit; }
.tools { display: flex; gap: 4px; font-size: 12px; color: #6e6e73; margin-bottom: 6px; }
.tools button { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: 3px 8px; background: #fff; cursor: pointer; font-size: 12px; color: #6e6e73; }
.tools button:hover { background: #f5f5f7; }
.nwrite .opts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.nwrite .opts .check { margin-top: 0; font-size: 13px; color: #1d1d1f; }
.nwrite .attach { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nwrite .msg { margin-top: 14px; font-size: 12.5px; padding: 8px 11px; }
.nwrite .btnrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr; }
  .col2 { grid-column: auto; }
  .sched { grid-template-columns: 1fr; }
  .nread { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page { padding: 16px 12px 32px; }
  body.home .page { padding-top: 12px; }
  .nlist .nrow { grid-template-columns: 12px 1fr auto; gap: 4px 8px; padding: 12px 4px; }
  .nlist .nrow.head { display: none; }
  .nlist .nrow .who { grid-column: 2; grid-row: 2; }
  .nlist .nrow .when { grid-column: 3; grid-row: 1; }
  .nlist .nrow .cnt { grid-column: 3; grid-row: 2; text-align: right; }
  .nlist .nrow .dot { grid-row: 1; }
  .search { width: 100%; }
  .nhead form { flex: 1 1 140px; }
  .nhead .right { margin-left: 0; width: 100%; }
  .nwrite { padding: 16px 14px; }
  .dialog { padding: 18px 16px; }
}
@media (max-width: 600px) {
  .card3 { padding: 14px 12px; }
  .month { gap: 2px; }
  .month, .month.big { grid-auto-rows: minmax(54px, 1fr); }
  .month.big { grid-auto-rows: minmax(70px, 1fr); }
  .month .cell { min-height: 54px; padding: 3px 2px; }
  .month .e { font-size: 0; line-height: 0; height: 5px; padding: 0; border-left: 0; background: var(--c); margin-top: 2px; }
  .month .e.hol { font-size: 0; background: #d6453d; height: 5px; }
  .month .e.more { height: auto; font-size: 10px; line-height: 1.2; background: transparent; color: #6e6e73; }
  .month.big .cell { min-height: 70px; }
  .month.big .e { font-size: 0; padding: 0; }
  .sched .top .right { margin-left: 0; }
  .two { grid-template-columns: 1fr; }
}

/* ====================================================================
   4단계: 관리 화면 (시안 H) · 윗줄 "관리 화면" 항목
   ==================================================================== */
.usermenu a {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 7px;
  padding: 8px 10px; font-size: 13px; cursor: pointer; color: #1d1d1f; text-decoration: none; white-space: nowrap;
}
.usermenu a:hover, .usermenu a:focus-visible { background: #f0f0f2; }

body.admin { background: #eceef1; }
.adm { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.adm-side {
  background: #1d1d1f; color: #d2d2d7; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  align-self: start;
}
.adm-side b { color: #fff; font-size: 15px; display: block; margin: 0 8px 18px; }
.adm-side a { display: block; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; margin-bottom: 2px; color: inherit; text-decoration: none; }
.adm-side a:hover { background: #2a2a2c; }
.adm-side a[aria-current="page"] { background: #3a3a3c; color: #fff; font-weight: 700; }
.adm-side small { display: block; color: #8e8e93; font-size: 11px; margin: 16px 10px 6px; }
.adm-side a.back { margin-top: 26px; color: #8e8e93; font-size: 12.5px; }
.adm-side a.back:hover { color: #d2d2d7; }
.adm-main { padding: 24px 28px 40px; min-width: 0; }
.adm-main h1 { font-size: 22px; margin: 0 0 4px; }
.adm-sub { color: #6e6e73; font-size: 12.5px; line-height: 1.5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.adm-num { background: #fff; border-radius: 14px; padding: 14px 16px; min-width: 0; }
.adm-num .big { font-size: 24px; font-weight: 800; margin-top: 4px; }
.adm-num .side { margin-top: 2px; word-break: break-all; }
.adm-num .label, .adm-num .side { color: #6e6e73; font-size: 12.5px; line-height: 1.5; }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #a1a1a6; }
.dotc.ok { background: #248a3d; }
.dotc.warn { background: #e0a100; }
.dotc.bad { background: #c4281c; }
.bar { height: 8px; background: #e8e8ed; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: #0071e3; min-width: 3px; }
.adm-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.adm-card { background: #fff; border-radius: 16px; padding: 16px 18px; min-width: 0; margin-bottom: 14px; }
.adm-two .adm-card { margin-bottom: 0; }
.adm-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-card h3 .right { margin-left: auto; }
.adm-card .foot-note { margin-top: 10px; }
.tscroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; color: #6e6e73; font-weight: 600; font-size: 12px; padding: 7px 6px; border-bottom: 1px solid rgba(0,0,0,.08); white-space: nowrap; }
table.tbl td { padding: 9px 6px; border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: middle; }
table.tbl tr.off td { opacity: .5; }
table.tbl tr.off td.act { opacity: 1; }
table.tbl td.act { text-align: right; white-space: nowrap; }
table.tbl .nowrap { white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 0; color: #0071e3; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn + .linkbtn { margin-left: 10px; }
a.linkbtn { text-decoration: none; }
.pill.ok { background: #e7f4ea; color: #248a3d; }
.pill.gray { background: #f0f0f2; color: #6e6e73; }
.pill.bad { background: #fff0ef; color: #c4281c; }
.ok-t { color: #248a3d; }
.bad-t { color: #c4281c; }
.st-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.05); align-items: center; }
.st-row .sub { display: block; color: #6e6e73; font-size: 12px; margin-top: 2px; word-break: break-all; }
.st-btns { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.adm-card.bigcard { padding: 20px 24px; }
.adm-card.bigcard h3 { font-size: 17px; }
.bigcard .st-row { font-size: 14.5px; padding: 14px 0; }
.bigcard .st-row .sub { font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: #6e6e73; }
.kv dd { margin: 0; }
.adm-dialog { width: 520px; }
.adm-dialog .chips { margin-bottom: 2px; }
.adm-dialog .chip[disabled] { cursor: default; opacity: .6; }
.adm-dialog .sub { color: #6e6e73; font-size: 12.5px; line-height: 1.5; }
.adm-dialog .msg.info { margin: 12px 0 0; }
.adm-dialog .acts { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkbox {
  display: block; width: 100%; background: #f5f5f7; border: 0; border-radius: 10px; padding: 10px 12px; font-size: 12.5px;
  word-break: break-all; color: #1d1d1f; font-family: ui-monospace, Menlo, monospace; resize: none; line-height: 1.5;
}
.loadmsg.left { text-align: left; padding: 10px 0; }

@media (max-width: 1100px) {
  .adm-cards { grid-template-columns: repeat(2, 1fr); }
  .adm-two { grid-template-columns: 1fr; }
  .adm-two .adm-card { margin-bottom: 14px; }
}
@media (max-width: 760px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; padding: 12px 12px; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
  .adm-side b { width: 100%; margin: 0 4px 6px; }
  .adm-side a { margin: 0; padding: 7px 10px; }
  .adm-side small { display: none; }
  .adm-side a.back { margin: 0 0 0 auto; }
  .adm-main { padding: 18px 12px 32px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; }
}
@media (max-width: 480px) {
  .adm-cards { grid-template-columns: 1fr; }
  .adm-card { padding: 14px 12px; }
}
.adm-sub + .adm-card, .adm-sub + div > .adm-card:first-child { margin-top: 14px; }
table.tbl.wide { min-width: 640px; }
table.tbl td .pill { white-space: nowrap; }

/* ====================================================================
   5단계: 학교 정보 · 나이스(학사일정 · 급식) (시안 I1 · I2 값을 따름)
   ==================================================================== */
/* 홈 급식 카드 */
#meal-card h3 .seg { margin-left: 0; }
#meal-card h3 .seg + .more { margin-left: auto; }
#meal-card .crow .dish { flex: none; }
#meal-card .crow .dish.first { color: #1d1d1f; }
.crow .alg { font-size: 12.5px; }
.mealnote { margin-top: 6px; }
.algkey { margin-top: 4px; font-size: 11px; color: #a1a1a6; line-height: 1.5; }
.meal-dialog { width: 560px; }
.meal-dialog .mrow { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 9px 8px; border-top: 1px solid rgba(0,0,0,.06); font-size: 13px; align-items: start; }
.meal-dialog .mrow:first-of-type { border-top: 0; }
.meal-dialog .mrow.today { background: #eef4fc; border-radius: 10px; border-top-color: transparent; }
.meal-dialog .mrow .d { color: #6e6e73; font-size: 12px; line-height: 1.6; }
.meal-dialog .mrow.today .d { color: #0071e3; font-weight: 700; }
.meal-dialog .mrow .none { color: #a1a1a6; }
.meal-dialog .mrow .dishes { line-height: 1.6; }
.meal-dialog .mealnote { margin-top: 12px; }

/* 관리 › 학교 정보 */
.adm-two.school { grid-template-columns: 1.1fr 1fr; margin-top: 16px; }
.adm-card .lbl.first { margin-top: 0; }
.adm-card .acts { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-card .gap4 { margin-top: 4px; }
.adm-card .two { margin-top: 2px; }
.findrow { display: flex; gap: 10px; }
.findrow .inp { flex: 1; min-width: 0; }
.sres { border: 1px solid rgba(0,0,0,.1); border-radius: 10px; margin-top: 8px; overflow: hidden; }
.srow {
  display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0;
  border-top: 1px solid rgba(0,0,0,.06); padding: 9px 12px; font-size: 13px; cursor: pointer; font-family: inherit; color: #1d1d1f;
}
.srow:first-child { border-top: 0; }
.srow:hover { background: #f5f9fe; }
.srow.on { background: #eef4fc; }
.srow .stick { width: 12px; flex: none; display: inline-block; }
.srow b { font-weight: 600; }
.srow small { margin-left: auto; color: #6e6e73; font-size: 12px; text-align: right; }
.btnrow2 { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.chip.grade { border-radius: 8px; min-width: 38px; justify-content: center; padding: 5px 11px; }
.adm-card .msg { margin-top: 12px; }
.adm-card .msg.info { margin: 12px 0 0; }
.st-row .r { text-align: right; }
.check.big { font-size: 13px; color: #1d1d1f; margin-top: 6px; }
.check.big input:disabled { opacity: .5; cursor: not-allowed; }
.syncrow { margin-top: 14px; }
@media (max-width: 1100px) { .adm-two.school { grid-template-columns: 1fr; } .adm-two.school .adm-card { margin-bottom: 14px; } }
@media (max-width: 480px) { .srow { flex-wrap: wrap; } .srow small { margin-left: 20px; text-align: left; flex-basis: 100%; } .st-row { grid-template-columns: 1fr; } .st-row .r { text-align: left; } }

/* ====================================================================
   6단계: 자료실 (시안 J1~J4) · 공지 첨부 (시안 F2 · F3)
   ==================================================================== */
.fl { display: grid; grid-template-columns: 220px minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.fl .panel { padding: 16px 18px; }
.fo-row { display: flex; align-items: center; border-radius: 9px; margin-bottom: 2px; }
.fo-row.on { background: #e8f1fc; color: #0071e3; font-weight: 700; }
.fo-main { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 0; background: none; font-size: 13.5px; cursor: pointer; text-align: left; border-radius: 9px; color: inherit; font-weight: inherit; }
.fo-row:not(.on) .fo-main:hover { background: #f5f5f7; }
.fo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-count { color: #a1a1a6; font-size: 12px; font-weight: 400; }
.fo-row.on .fo-count { color: #0071e3; }
.fo-edit { border: 0; background: none; color: #0071e3; cursor: pointer; padding: 4px 8px; font-size: 13px; border-radius: 6px; }
.fo-edit:hover { background: #d8e8fb; }
.fo-act { display: block; border: 0; background: none; color: #0071e3; font-size: 13px; margin-top: 8px; padding: 0 10px; cursor: pointer; text-align: left; font-family: inherit; }
.fo-act.ai { color: #6b46c1; margin-top: 6px; }
.fo-act:hover { text-decoration: underline; }
.fo-note { padding: 10px; }

.drop { border: 2px dashed rgba(0,0,0,.18); border-radius: 14px; text-align: center; padding: 16px; font-size: 13.5px; color: #3a3a3c; line-height: 1.6; }
.drop.over { border-color: #0071e3; background: #f3f8ff; }
.linkpick { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #1d1d1f; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkpick:hover { color: #0071e3; }
.find { display: flex; gap: 8px; margin: 12px 0; align-items: center; }
.findbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,.14); border-radius: 9px; padding: 0 12px; background: #fff; }
.findbox:focus-within { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.findbox input { flex: 1; min-width: 0; border: 0; outline: none; padding: 8px 0; font-size: 13px; background: transparent; }
.findbox input::-webkit-search-cancel-button { display: none; }
.soon-chip { font-size: 11.5px; background: #f0f0f2; color: #6e6e73; border-radius: 999px; padding: 2px 8px; margin-left: 2px; white-space: nowrap; }
.sortwrap select { border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 9px; padding: 8px 28px 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.frow-head, .frow { display: grid; grid-template-columns: minmax(0, 1fr) 130px 80px 80px 50px; gap: 10px; align-items: center; padding: 10px 8px; font-size: 13.5px; }
.frow-head { color: #6e6e73; font-size: 12px; padding: 6px 8px; }
.frow { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid rgba(0,0,0,.06); cursor: pointer; color: inherit; font-family: inherit; }
.frow:hover { background: #fafafc; }
.frow.sel { background: #f3f8ff; border-radius: 10px; border-top-color: transparent; }
.frow .c-ver { color: #6e6e73; font-size: 12px; }
.fname { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fname .tt { display: flex; flex-direction: column; min-width: 0; }
.fname .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname .fsub { display: none; font-size: 11.5px; color: #6e6e73; }
.ficon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; flex: none; background: var(--c, #8e8e93); }
.ficon.big { width: 52px; height: 52px; border-radius: 13px; font-size: 14px; }
.fl-main .pager button { background: none; border: 0; padding: 3px 8px; border-radius: 6px; color: #6e6e73; cursor: pointer; font-size: 13px; font-family: inherit; }
.fl-main .pager button:hover { background: #f0f0f2; }
.fd-title { font-size: 16px; font-weight: 800; word-break: break-word; }
.pv { background: #f5f5f7; border-radius: 12px; height: 210px; display: grid; place-items: center; color: #a1a1a6; font-size: 13px; margin: 10px 0; overflow: hidden; }
.pv img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pv-in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 16px; }
.aibox { background: #f5f5f7; color: #8e8e93; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin: 10px 0; }
.fd-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-h { margin-top: 14px; font-size: 13px; font-weight: 700; }
.vline { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; border-top: 1px solid rgba(0,0,0,.06); gap: 8px; flex-wrap: wrap; }
.vline:first-of-type { margin-top: 4px; }
.vline .lk a.linkbtn { text-decoration: none; }
.vline .lk a.linkbtn:hover { text-decoration: underline; }
.vsub { font-size: 11.5px; }
.fd-del { margin-top: 10px; }
.linkbtn.danger { color: #ff3b30; }
.ai-chip { font-size: 11px; font-weight: 700; color: #6b46c1; background: #f1ebfb; border-radius: 999px; padding: 2px 8px; white-space: nowrap; display: inline-block; }

.up-dialog { width: 640px; }
.dialog .x { margin-left: auto; }
.urow { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.urow .top { display: flex; gap: 10px; align-items: center; font-size: 13.5px; flex-wrap: wrap; }
.urow .top .nm { word-break: break-all; min-width: 0; }
.urow .pick { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pickbtn { border: 1px solid rgba(0,0,0,.16); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; background: #fff; max-width: 190px; cursor: pointer; }
.note { border-radius: 8px; padding: 8px 11px; font-size: 12.5px; margin-top: 8px; line-height: 1.55; white-space: pre-line; }
.note.ok { background: #e7f4ea; color: #248a3d; }
.note.warn { background: #fff4dc; color: #8a6500; }
.note.info { background: #eef4fc; color: #245a9a; }
.note.err { background: #fff0ef; color: #c4281c; }
.note .check.inl { margin-top: 2px; font-size: 12.5px; color: inherit; display: inline-flex; }
.note .seg { margin-left: 4px; }
.note .seg button { font-size: 12px; }
.note.info .seg > .on { color: #245a9a; }
.pill.ok { background: #e7f4ea; color: #248a3d; }
.dialog .btnrow .muted { margin-right: auto; }
.dialog .btnrow .linkbtn { margin-right: auto; }
.folder-dialog { width: 560px; }
.folder-dialog .fd-hint { margin-top: 6px; }
.cleanup-dialog { width: 760px; }
.cltbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.cltbl th { text-align: left; color: #6e6e73; font-size: 12px; padding: 6px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cltbl td { padding: 9px 6px; border-bottom: 1px solid rgba(0,0,0,.05); }
.cltbl .arr { color: #a1a1a6; }
.cltbl .cl-name { word-break: break-all; }
.cltbl .check.cb { margin: 0; }
.pkfind { display: flex; gap: 8px; margin: 12px 0 6px; }
.pkfind .inp { flex: 1; }
.pklist { max-height: 330px; overflow-y: auto; border-top: 1px solid rgba(0,0,0,.06); }
.pkrow { display: flex; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; font-size: 13.5px; }
.pkrow.sel { background: #f3f8ff; }
.pkrow input { margin: 0; accent-color: #0071e3; }
.pkname { display: flex; flex-direction: column; min-width: 0; }
.pkname b { font-weight: 600; word-break: break-all; }
.pkmore { text-align: center; margin-top: 8px; }

/* 공지: 첨부 (F2 읽기 · F3 쓰기 · F1 목록) */
.clip { color: #a1a1a6; font-size: 12px; margin-left: 6px; font-weight: 400; white-space: nowrap; }
.nfiles { margin-top: 4px; }
.nfile { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 6px; }
.nfile .meta2 { min-width: 0; flex: 1; }
.nfile .meta2 b { display: block; word-break: break-all; }
.nfile.gone { color: #a1a1a6; background: #fafafc; }
.nfile .ficon { flex: none; }
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; width: 100%; }
.attach-list .nfile { margin-top: 0; padding: 8px 10px; }
.nfile .rm { border: 0; background: none; color: #a1a1a6; cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.nfile .rm:hover { background: #f0f0f2; color: #1d1d1f; }
.nwrite .attach { flex-wrap: wrap; }

@media (max-width: 1100px) {
  .fl { grid-template-columns: 200px minmax(0, 1fr); }
  .fl-detail { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fl { grid-template-columns: 1fr; }
  .frow-head { display: none; }
  .frow { grid-template-columns: minmax(0, 1fr) auto; }
  .frow .c-who, .frow .c-date { display: none; }
  .fname .fsub { display: block; }
  .frow .c-size { display: none; }
  .up-dialog, .folder-dialog, .cleanup-dialog { width: 100%; }
  .urow .pick { margin-left: 0; }
  .find { flex-wrap: wrap; }
  .soon-chip { display: none; }
}
