/* FindU 분실물 찾기 화면 (학생 + 관리자). 입력 칸·두 칸 줄(row2) 같은 공통 모양은 common.css에 있다 */
.page.findu {
  --brand: #0b7a75;
  --brand-dark: #075e5a;
  --brand-soft: #dff3f1;
}

/* ── 첫 화면 ── */
.fu-hero {
  text-align: center;
  padding: 26px 20px 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #075e5a, #0b7a75);
  color: #fff;
  box-shadow: var(--shadow);
}
.fu-brand { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-weight: 800; }
.fu-hero h1 { font-size: 1.5rem; margin-bottom: 6px; }
.fu-actions { display: grid; gap: 10px; max-width: 420px; margin: 14px auto 0; }
.fu-hero .btn.big { background: #fff; color: #075e5a; }
.fu-hero .btn.big:hover { background: #eefaf8; }
.fu-hero .btn.big.light { background: transparent; color: #fff; border: 2px solid #fff; }
.fu-hero .btn.big.light:hover { background: rgba(0, 0, 0, 0.15); }
.fu-hero :focus-visible { outline-color: #ffd166; }

.fu-how ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.fu-how b { color: var(--brand-dark); margin-inline-end: 4px; }

/* ── 습득물 모아 보기 ── */
.fu-filter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; }
.fu-filter button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.fu-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.fu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fu-grid .empty { grid-column: 1 / -1; }
.fu-card {
  display: block;
  height: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.fu-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(11, 122, 117, 0.15); }
.fu-card-body { display: grid; gap: 2px; padding: 8px 10px 10px; }
.fu-card-title { font-weight: 800; font-size: 0.95rem; line-height: 1.3; }
.fu-card-meta { font-size: 0.8rem; color: var(--muted); }

.fu-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eef1f6; }
.fu-photo.placeholder { display: grid; place-items: center; align-content: center; gap: 4px; font-size: 2.4rem; color: var(--muted); }
.fu-photo.placeholder small { font-size: 0.75rem; font-weight: 700; }

/* ── 입력 화면 ── */
.fu-tabs { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fu-tabs label { position: relative; cursor: pointer; }
.fu-tabs input { position: absolute; opacity: 0; }
.fu-tabs span {
  display: block;
  padding: 12px 8px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  text-align: center;
  font-weight: 800;
}
.fu-tabs input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.fu-tabs input:focus-visible + span { outline: 3px solid #172033; outline-offset: 2px; }
.fu-storage { border: 0; padding: 0; margin: 0 0 16px; }
.fu-storage legend { padding: 0; }
.radio-row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; cursor: pointer; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ── AI 분석 결과 표 ── */
.fu-analysis { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.fu-analysis th, .fu-analysis td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fu-analysis th { width: 7.5em; color: var(--muted); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.fu-analysis td { font-weight: 700; }
.fu-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.fu-result-photo { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #eef1f6; margin-bottom: 12px; }
.fu-note { padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: #064b48; font-weight: 600; margin-bottom: 8px; }
.fu-note.warn { background: #fff4cc; color: #4d3700; }

/* ── 검색 결과 ── */
.fu-result:focus { outline: none; }
.fu-query h1 { font-size: 1.35rem; }
.fu-query-line { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-count { margin: 4px 0 12px; font-weight: 700; }
.cand {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px 14px;
  padding: 16px;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border-inline-start: 6px solid #c9d2e1;
}
.cand.high { border-inline-start-color: #1f9d55; }
.cand.mid { border-inline-start-color: #e0a800; }
.cand-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.cand-head h2 { margin: 0; font-size: 1.05rem; }
.cand .fu-photo { border-radius: 12px; }
.cand-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cand-body p, .no-margin { margin: 0; }
.claim-status .pickup-code + p { margin-top: 2px; }
.cand-headline { font-weight: 800; margin: 2px 0 0; }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.points li { padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: #eef1f6; }
.points li.ok { background: var(--green-soft); color: var(--green); }
.points li.no { background: var(--red-soft); color: var(--red); }
.points li.mid { background: #fff4cc; color: #6b4b00; }
.cand-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.level { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.claim-main .chip, .claim-main .level { white-space: normal; text-align: left; }
.claim-actions .danger-zone { width: 100%; margin-top: 8px; padding-top: 12px; }
.level.high { background: var(--green-soft); color: var(--green); }
.level.mid { background: #fff4cc; color: #6b4b00; }
.level.low { background: #eef1f6; color: var(--muted); }
.fu-wait { text-align: center; }
.fu-wait p { margin-bottom: 8px; }
.fu-done { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ── 물건 보기 · 소유자 확인 ── */
.fu-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.fu-item .fu-photo { border-radius: 14px; }
.fu-item h1 { font-size: 1.4rem; margin-bottom: 8px; }
.claim-status { padding: 14px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 10px; }
.claim-status.pending { background: #fff4cc; color: #4d3700; }
.claim-status.approved, .claim-status.done { background: var(--green-soft); color: #0f5130; }
.claim-status.rejected { background: var(--red-soft); color: #8a1c14; }
.pickup-code {
  display: block;
  margin: 8px 0 4px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #0f5130;
}

/* ── 관리자 ── */
.claims { display: grid; gap: 12px; }
.claim-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfe;
}
.claim-card.approved { border-color: #b9e6c9; background: #f4fbf6; }
.claim-card .fu-photo { border-radius: 10px; }
.claim-main { display: grid; gap: 8px; min-width: 0; }
.claim-main h3 { margin: 0; font-size: 1.05rem; }
.claim-box { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.claim-box b { display: block; font-size: 0.8rem; color: var(--muted); }
.claim-box.secret { background: #fff8e1; border: 1px dashed #e9c46a; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.claim-actions input { flex: 1 1 220px; width: auto; min-height: 40px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.admin-item-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.admin-item-grid .col { min-width: 0; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); }

@media (min-width: 641px) {
  .fu-filter { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 900px) {
  .admin-item-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fu-item { grid-template-columns: 1fr; }
  .cand { grid-template-columns: 88px 1fr; padding: 14px; }
  .claim-card { grid-template-columns: 1fr; }
  .claim-card > a { max-width: 140px; }
  .claim-actions input { flex-basis: 100%; }
  .fu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


/* ── 2026 리디자인 (모아뱅크 스타일) ── */
.page.findu { --brand: #14a47c; --brand-dark: #0e8a67; --brand-soft: #e6f7f0; }
.fu-hero {
  position: relative; overflow: hidden; text-align: left; padding: 24px 22px 22px;
  border-radius: var(--radius); background: linear-gradient(135deg, #14b88a, #4fd1a5); box-shadow: var(--shadow);
}
.fu-hero::after {
  content: ""; position: absolute; right: -34px; top: -55px; width: 130px; height: 130px;
  border: 45px solid rgba(255, 255, 255, 0.1); border-radius: 50%; pointer-events: none;
}
.fu-brand { background: rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 4px 10px; font-size: 0.8rem; }
.fu-hero h1 { font-size: 25px; line-height: 1.38; letter-spacing: -1.1px; }
.fu-hero p { color: #effcf7; font-size: 0.9rem; }
.fu-actions { max-width: none; margin: 16px 0 0; }
.fu-hero .btn.big { position: relative; z-index: 1; min-height: 52px; font-size: 0.92rem; color: #0e8a67; }
.fu-hero .btn.big.light { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff; }
.fu-hero .btn.big.light:hover { background: rgba(255, 255, 255, 0.12); }
.fu-hero :focus-visible { outline-color: #fff; }

.fu-filter { gap: 8px; }
.fu-filter button { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 12px; background: #e9edf3; color: #4e5968; font-size: 0.85rem; font-weight: 800; }
.fu-filter button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.fu-grid { gap: 12px; }
.fu-card { border: 0; border-radius: 19px; box-shadow: var(--shadow); }
.fu-card:hover { box-shadow: 0 6px 18px rgba(20, 164, 124, 0.14); }
.fu-card-body { padding: 10px 12px 13px; gap: 3px; }
.fu-card-title { font-size: 0.9rem; letter-spacing: -0.3px; }
.fu-photo { background: #f4f5f8; }
.fu-tabs span { border-radius: 14px; border: 2px solid #e5eaf0; background: #f8fafc; }
.fu-note { border-radius: 14px; }
.cand { border-radius: var(--radius); border-inline-start-width: 5px; }
.claim-status { border-radius: 16px; }

