/* ================================================================
   WallTree — 우리 학교 담벼락
   교실 게시판 · 색종이 카드 감성 / Pretendard
   ================================================================ */

:root {
  --ink: #182b21;
  --ink2: #5c7264;
  --line: #dce5dd;
  --green: #2f9e62;
  --green-d: #23824e;
  --green-bg: #eefaf2;
  --amber: #f0b429;
  --red: #d64550;
  --sh: 0 1px 2px rgba(23, 40, 31, .05), 0 8px 20px -10px rgba(23, 40, 31, .22);
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }
.sp { flex: 1; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------------- 배경 프리셋 (body / 스와치 / 커버 공용) ---------------- */
.bg1  { background: #f1f5f0; }
.bg2  { background: linear-gradient(180deg, #e9f2fe, #f7fbff); }
.bg3  { background: linear-gradient(180deg, #ffefe2, #fff9f3); }
.bg4  { background: linear-gradient(180deg, #efeafb, #faf8fe); }
.bg5  { background: linear-gradient(180deg, #fff6d1, #fffdf2); }
.bg6  { background: linear-gradient(180deg, #fde7ef, #fff7fa); }
.bg7  { background: linear-gradient(180deg, #e0f6ea, #f4fcf7); }
.bg8  { background-color: #fcfcf6;
        background-image: linear-gradient(#e6e6d8 1px, transparent 1px),
                          linear-gradient(90deg, #e6e6d8 1px, transparent 1px);
        background-size: 24px 24px; }
.bg9  { background-color: #f7efdc;
        background-image: radial-gradient(#e0d1ab 1.4px, transparent 1.5px);
        background-size: 18px 18px; }
.bg10 { background: linear-gradient(180deg, #123524, #0b2318); }
.bg11 { background: linear-gradient(180deg, #141b30, #0b1020); }
.bg12 { background: linear-gradient(180deg, #26292e, #141619); }

/* ---------------- 버튼 ---------------- */
.btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 11px; padding: 9px 16px;
  font-size: 14px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s;
}
.btn:hover { background: #f4f8f4; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-d); border-color: var(--green-d); }
.btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f0c3c6; }
.btn.danger:hover { background: #fdf1f1; }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.btn.wide { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: .55; cursor: default; }

.icon-btn {
  border: none; background: transparent; color: var(--ink2);
  width: 28px; height: 28px; border-radius: 8px; font-size: 15px;
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn:hover { background: rgba(24, 43, 33, .08); color: var(--ink); }

.pill {
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .85); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.pill:hover { background: #fff; }
.pill.warn { border-color: #e8c65a; background: #fff6d8; color: #7a5c00; }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- 상단 바 ---------------- */
#topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 43, 33, .08);
}
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.logo { font-size: 24px; text-decoration: none; display: flex; align-items: center; gap: 7px; flex: none; }
.logo span { font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.tb-title { min-width: 0; }
.tb-title h1 {
  margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.tb-title p {
  margin: 1px 0 0; font-size: 12px; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.tb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#searchInp {
  width: 150px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; background: rgba(255, 255, 255, .8);
}
.user-chip { font-size: 13px; color: var(--ink2); }
.user-chip b { color: var(--ink); font-weight: 800; }

/* 어두운 배경일 때 */
body.dark #topbar { background: rgba(10, 18, 14, .55); border-color: rgba(255, 255, 255, .12); }
body.dark .tb-title h1, body.dark .logo span { color: #f0f6f1; }
body.dark .tb-title p { color: #b9c8bd; }
body.dark .pill { background: rgba(255, 255, 255, .1); color: #eef4ef; border-color: rgba(255, 255, 255, .22); }
body.dark .pill.warn { background: #4d3f10; color: #ffe9a8; border-color: #927a2c; }
body.dark #searchInp { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
body.dark #searchInp::placeholder { color: #aebfb3; }
body.dark .empty { color: #cfe0d3; }

/* ---------------- 보드 영역 / 레이아웃 4종 ---------------- */
#boardArea { padding: 20px 18px 120px; max-width: 1500px; margin: 0 auto; }

.layout-wall .cards { columns: 236px; column-gap: 16px; }
.layout-wall .card { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 16px; }

.layout-grid .cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; align-items: start;
}

.layout-stream .cards { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.layout-shelf { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; }
.shelf-col {
  flex: 0 0 292px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(24, 43, 33, .06);
  border-radius: 18px; padding: 10px;
}
body.dark .shelf-col { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .1); }
.shelf-head { display: flex; align-items: center; gap: 6px; padding: 2px 6px 8px; }
.shelf-head h2 {
  margin: 0; font-size: 14px; font-weight: 800; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.dark .shelf-head h2 { color: #eef4ef; }
body.dark .shelf-head .icon-btn { color: #cfe0d3; }
.cnt { font-size: 11px; font-weight: 700; color: var(--ink2); background: rgba(24, 43, 33, .08); border-radius: 999px; padding: 2px 8px; }
body.dark .cnt { color: #dcebe0; background: rgba(255, 255, 255, .14); }
.shelf-col .cards { display: flex; flex-direction: column; gap: 12px; min-height: 10px; }
.shelf-post {
  margin-top: 10px; width: 100%; cursor: pointer;
  border: 1.5px dashed rgba(24, 43, 33, .22); background: transparent;
  border-radius: 12px; padding: 9px; font-size: 13px; font-weight: 700; color: var(--ink2);
}
.shelf-post:hover { border-color: var(--green); color: var(--green); }
body.dark .shelf-post { border-color: rgba(255, 255, 255, .3); color: #cfe0d3; }
.shelf-add {
  flex: 0 0 auto; align-self: flex-start; cursor: pointer; white-space: nowrap;
  border: 1.5px dashed rgba(24, 43, 33, .25); background: rgba(255, 255, 255, .4);
  border-radius: 18px; padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--ink2);
}
.shelf-add:hover { border-color: var(--green); color: var(--green); }
body.dark .shelf-add { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); color: #cfe0d3; }

.empty { text-align: center; color: var(--ink2); font-size: 15px; padding: 70px 20px; }

/* ---------------- 카드 (색종이) ---------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(24, 43, 33, .08);
  border-radius: var(--r);
  padding: 12px 14px;
  box-shadow: var(--sh);
}
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .45; transform: rotate(1.5deg); }
.card.pending { outline: 2px dashed var(--amber); outline-offset: 1px; }

.card.c1 { background: #fff3be; } .card.c2 { background: #ffdfeb; }
.card.c3 { background: #daeeff; } .card.c4 { background: #e1f7d4; }
.card.c5 { background: #eae2ff; } .card.c6 { background: #ffe7d0; }
.card.c7 { background: #d5f5ec; } .card.c8 { background: #eef0f2; }

.c-head { display: flex; align-items: center; gap: 8px; }
.c-author { font-size: 13px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-author.anon { color: var(--ink2); font-weight: 600; }
.tch {
  font-size: 10px; font-weight: 800; color: #fff; background: var(--green);
  border-radius: 999px; padding: 1.5px 7px; vertical-align: 1px; font-style: normal;
}
.c-time { margin-left: auto; font-size: 11.5px; color: var(--ink2); flex: none; }
.c-menu { width: 24px; height: 24px; margin-right: -4px; }

.pend-tag {
  display: inline-block; margin: 7px 0 0; font-size: 11px; font-weight: 800;
  color: #7a5c00; background: rgba(255, 236, 168, .9); border-radius: 8px; padding: 3px 9px;
}
.c-title { margin: 7px 0 2px; font-size: 15px; font-weight: 800; line-height: 1.35; word-break: break-word; }
.c-body { margin-top: 5px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.c-body a { color: var(--green-d); font-weight: 600; word-break: break-all; }

.c-img { display: block; margin-top: 9px; }
.c-img img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }
.c-media { display: block; width: 100%; margin-top: 9px; border-radius: 10px; background: #000; max-height: 340px; }
iframe.c-media.yt { aspect-ratio: 16/9; border: 0; max-height: none; }
.c-audio { display: block; width: 100%; margin-top: 9px; }

.c-yt { position: relative; margin-top: 9px; cursor: pointer; border-radius: 10px; overflow: hidden; }
.c-yt img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.yt-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 20px; background: rgba(0, 0, 0, .28); transition: background .12s;
}
.yt-play::after { content: ''; position: absolute; }
.c-yt:hover .yt-play { background: rgba(0, 0, 0, .42); }

.c-link, .c-file {
  display: flex; align-items: center; gap: 9px; margin-top: 9px;
  border: 1.5px solid rgba(24, 43, 33, .12); border-radius: 11px;
  padding: 8px 11px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .6); min-width: 0;
}
.c-link:hover, .c-file:hover { border-color: var(--green); }
.lk-ic, .fl-ic { font-size: 16px; flex: none; }
.lk-t { min-width: 0; }
.lk-t b { display: block; font-size: 13px; }
.lk-t i {
  display: block; font-size: 11px; font-style: normal; color: var(--ink2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.c-file span:last-child {
  font-size: 13px; font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.c-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.rx {
  border: 1.5px solid rgba(24, 43, 33, .14); background: rgba(255, 255, 255, .65);
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.rx b { font-weight: 800; }
.rx i { font-style: normal; font-size: 10.5px; color: var(--ink2); }
.rx:hover { border-color: var(--green); }
.rx.on { background: var(--green); border-color: var(--green); color: #fff; }
.rx.on i { color: #dff5e8; }

.mod-bar { display: flex; gap: 8px; margin-top: 11px; }
.mod-bar .btn { flex: 1; }

/* 댓글 */
.cmts { margin-top: 11px; border-top: 1.5px dashed rgba(24, 43, 33, .14); padding-top: 9px; }
.cm { display: flex; gap: 7px; align-items: baseline; padding: 3px 0; }
.cm b { font-size: 12px; font-weight: 800; flex: none; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm b.anon { color: var(--ink2); font-weight: 600; }
.cm b .tch { font-size: 9px; padding: 1px 5px; }
.cm span { font-size: 13px; line-height: 1.45; flex: 1; min-width: 0; word-break: break-word; }
.cm time { font-size: 10.5px; color: var(--ink2); flex: none; }
.cm-x {
  border: none; background: transparent; color: var(--ink2); cursor: pointer;
  font-size: 11px; padding: 2px 4px; border-radius: 6px; flex: none;
}
.cm-x:hover { color: var(--red); background: rgba(214, 69, 80, .1); }
.cm-empty { font-size: 12px; color: var(--ink2); margin: 2px 0 6px; }
.cm-form { display: flex; gap: 6px; margin-top: 7px; }
.cm-form input {
  flex: 1; min-width: 0; border: 1.5px solid rgba(24, 43, 33, .14); border-radius: 9px;
  padding: 7px 10px; font-size: 13px; background: rgba(255, 255, 255, .8);
}

/* ---------------- FAB ---------------- */
#fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green); color: #fff; font-size: 30px; line-height: 1;
  box-shadow: 0 10px 24px -6px rgba(35, 130, 78, .6);
  z-index: 40; transition: transform .15s, background .12s;
}
#fab:hover { transform: scale(1.07); background: var(--green-d); }

/* ---------------- 모달 / 시트 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  place-items: center; padding: 16px;
  background: rgba(13, 24, 18, .5);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.modal.show { display: grid; }
.sheet {
  background: #fff; color: var(--ink);
  border-radius: 20px; width: min(560px, 100%);
  max-height: min(88dvh, 780px); overflow: auto;
  padding: 18px 20px 20px; box-shadow: 0 24px 60px -12px rgba(10, 25, 16, .4);
}
.sheet.small { width: min(400px, 100%); }
.sheet.center { text-align: center; }
.sheet-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sheet-h h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 800; letter-spacing: -.01em; text-align: left; }
.sheet-f { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.fld { display: block; margin: 11px 0; font-size: 13px; font-weight: 700; color: var(--ink2); text-align: left; }
.fld-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); }
.fld input, .fld textarea, .fld select { margin-top: 6px; }

input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 10px 12px; font-size: 14px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: none; }
textarea { resize: vertical; line-height: 1.5; }

#cpT { font-weight: 800; font-size: 15px; margin-top: 4px; }
#cpB { margin-top: 8px; }
#cpLink { margin-top: 8px; }

/* 색 칩 */
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(24, 43, 33, .12); padding: 0;
}
.chip.sel { outline: 3px solid var(--green); outline-offset: 2px; }
.chip.c0 { background: #fff; }
.chip.c1 { background: #ffe066; } .chip.c2 { background: #ffa8c8; }
.chip.c3 { background: #7cc4ff; } .chip.c4 { background: #9be36e; }
.chip.c5 { background: #b197fc; } .chip.c6 { background: #ffb066; }
.chip.c7 { background: #63d3b9; } .chip.c8 { background: #b8c0c8; }

/* 첨부 도구 */
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tool {
  border: 1.5px dashed var(--line); background: #fafcf9; color: var(--ink);
  border-radius: 10px; padding: 8px 13px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.tool:hover { border-color: var(--green); color: var(--green-d); }
.tool.rec {
  border-style: solid; border-color: var(--red); color: var(--red); background: #fff0f0;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(214, 69, 80, .15); } }

.prev {
  position: relative; margin-top: 10px; padding: 8px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fafcf9;
  display: flex; justify-content: center;
}
.prev img { max-height: 190px; border-radius: 8px; }
.prev audio, .prev video { width: 100%; max-height: 190px; }
.prev-file { font-size: 13px; font-weight: 600; padding: 8px 4px; word-break: break-all; }
.prev-x {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: none; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 11px; cursor: pointer; display: grid; place-items: center;
}

/* 레이아웃 선택 카드 */
.lay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 7px; }
.lay-grid label { cursor: pointer; position: relative; }
.lay-grid input { position: absolute; opacity: 0; pointer-events: none; }
.lay-grid span {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  column-gap: 9px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff;
}
.lay-grid em { grid-row: 1 / 3; font-style: normal; font-size: 22px; text-align: center; }
.lay-grid b { font-size: 13px; font-weight: 800; }
.lay-grid i { font-size: 11px; font-style: normal; color: var(--ink2); }
.lay-grid input:checked + span {
  border-color: var(--green); background: var(--green-bg);
  box-shadow: inset 0 0 0 1px var(--green);
}

/* 배경 스와치 */
.bg-grid { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 7px; }
.bg-sw { width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid rgba(24, 43, 33, .14); cursor: pointer; padding: 0; }
.bg-sw.sel { outline: 3px solid var(--green); outline-offset: 2px; }

/* 스위치 */
.switch { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .knob { width: 38px; height: 22px; border-radius: 999px; background: #d2ddd4; position: relative; flex: none; transition: background .15s; }
.switch .knob::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s;
}
.switch input:checked + .knob { background: var(--green); }
.switch input:checked + .knob::after { left: 19px; }
.switch i { font-size: 11.5px; font-style: normal; font-weight: 500; color: var(--ink2); }

/* 공유 */
.qr { width: 220px; height: 220px; display: block; margin: 10px auto 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink2); }

.hint { font-size: 12px; color: var(--ink2); line-height: 1.55; margin: 8px 0 0; }
.hint.center { text-align: center; }

/* 팝 메뉴 */
.popmenu {
  position: fixed; z-index: 80; min-width: 130px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(10, 25, 16, .35); padding: 5px;
}
.popmenu button {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.popmenu button:hover { background: #f1f6f2; }
.popmenu button.danger { color: var(--red); }
.popmenu button.danger:hover { background: #fdf1f1; }

/* 라이트박스 */
.modal.lb { padding: 0; background: rgba(8, 14, 10, .92); }
.modal.lb img { max-width: 96vw; max-height: 92dvh; border-radius: 8px; }
.lb-x {
  position: fixed; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 15px;
}
.lb-x:hover { background: rgba(255, 255, 255, .3); color: #fff; }

/* 토스트 */
#toastWrap {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 26px -6px rgba(10, 25, 16, .5);
  animation: rise .22s ease-out; transition: opacity .35s;
}
.toast.err { background: #b93a44; }
.toast.out { opacity: 0; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------------- 삭제/404 화면 ---------------- */
.gone { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.gone h1 { font-size: 58px; margin: 0; }
.gone p { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.6; }

/* ---------------- 랜딩 ---------------- */
.land-wrap { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 32px 18px; }
.land-hero { text-align: center; }
.land-logo { font-size: 62px; animation: sway 4.5s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.land-hero h1 { margin: 6px 0 0; font-size: 42px; font-weight: 900; letter-spacing: -.03em; }
.tagline { margin: 10px 0 0; font-size: 15px; color: var(--ink2); line-height: 1.65; }
.auth-card {
  width: min(384px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--sh); padding: 20px 22px 18px;
}
.tabs { display: flex; gap: 4px; background: #ecf2ed; border-radius: 12px; padding: 4px; margin-bottom: 6px; }
.tab { flex: 1; border: none; background: transparent; border-radius: 9px; padding: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------------- 대시보드 ---------------- */
.dash { max-width: 1100px; margin: 0 auto; padding: 26px 18px 90px; }
.dash-title { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin: 4px 0 18px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.b-add {
  border: 2px dashed rgba(24, 43, 33, .22); border-radius: 18px;
  background: rgba(255, 255, 255, .5); min-height: 196px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--ink2);
}
.b-add span { font-size: 30px; color: var(--green); line-height: 1; }
.b-add:hover { border-color: var(--green); color: var(--green-d); }
.b-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column;
}
.b-cover { display: block; height: 96px; position: relative; }
.b-pend {
  position: absolute; top: 8px; left: 8px;
  background: #fff6d8; border: 1px solid #e8c65a; color: #7a5c00;
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px;
}
.b-info { padding: 12px 14px 4px; }
.b-info h3 { margin: 0; font-size: 15px; }
.b-info h3 a { color: var(--ink); text-decoration: none; font-weight: 800; }
.b-info h3 a:hover { color: var(--green-d); }
.b-info p { margin: 4px 0 0; font-size: 12px; color: var(--ink2); }
.b-acts { display: flex; gap: 6px; padding: 10px 12px 12px; margin-top: auto; }

/* ---------------- 반응형 ---------------- */
@media (max-width: 680px) {
  #topbar { padding: 8px 12px; gap: 8px; }
  .tb-title h1 { font-size: 15px; max-width: 42vw; }
  .tb-title p { display: none; }
  #searchInp { width: 104px; }
  #boardArea { padding: 14px 12px 120px; }
  .layout-wall .cards { columns: 158px; column-gap: 12px; }
  .layout-wall .card { margin-bottom: 12px; }
  .layout-grid .cards { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .shelf-col { flex-basis: 262px; }
  .card { padding: 11px 12px; }
  .sheet { padding: 15px 16px 17px; border-radius: 18px; }
  .dash-title { font-size: 20px; }
  .land-hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
