/* 오늘구미 — 실제 동작용 추가 스타일 (style.css 토큰만 사용, 시안 모양 유지) */

/* 실제 입력칸: 시안 .input 과 같은 모양 */
input.input, textarea.input, select.input, .tg-in {
  width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff;
  padding: 13px 14px; font-size: 15.5px; font-family: var(--font); color: var(--ink); outline: none;
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
textarea.input, textarea.tg-in { resize: vertical; line-height: 1.6; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input.input:focus, textarea.input:focus, select.input:focus, .tg-in:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
input.input::placeholder, textarea.input::placeholder, .tg-in::placeholder { color: var(--ink-4); }
.input.err { border-color: var(--red); }
.seg span, .tg-chips .chip { cursor: pointer; user-select: none; }
.seg span:focus-visible, .tg-chips .chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: .55; cursor: default; }
a.btn, .btn[role=button] { cursor: pointer; }

/* 업로드: label 전체가 눌림 */
label.upload { display: block; cursor: pointer; }
label.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tg-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 8px; }
.tg-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bg-2); }

.tg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .tg-row3 { grid-template-columns: 1fr 1fr; } }
.field>label.tg-check, label.tg-check { display: flex; justify-content: flex-start; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ink-2); padding: 8px 0; margin: 0; cursor: pointer; }
.tg-check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin: 0; }
.tg-help { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.tg-muted { color: var(--ink-4); font-size: 13px; }
.tg-err { color: var(--red); font-size: 13px; margin-top: 6px; }

/* 알림 띠 */
.tg-flash { margin: 14px 0 0; background: var(--ink); color: #fff; border-radius: var(--r); padding: 12px 14px; font-size: 14px; transition: opacity .4s; }
.tg-flash.hide { opacity: 0; pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; }

/* 페이지 번호 */
.tg-pager { display: flex; justify-content: center; gap: 4px; margin: 22px 0 6px; flex-wrap: wrap; }
.tg-pager a, .tg-pager b { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.tg-pager a:hover { background: var(--bg-2); }
.tg-pager b { background: var(--ink); color: #fff; }

/* 검색 패널 입력 */
.og-sbar input.tg-sin { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); outline: none; min-width: 0; }
.og-recent a { display: inline-flex; }
.tg-trend-empty { color: var(--ink-3); font-size: 13px; padding: 14px 4px; }

/* 댓글 */
.tg-cmts { margin-top: 18px; }
.tg-cmt { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tg-cmt .av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: 13px; color: var(--ink-2); }
.tg-cmt .bd { flex: 1; min-width: 0; }
.tg-cmt .nm { font-weight: 700; font-size: 13.5px; }
.tg-cmt .nm small { color: var(--ink-4); font-weight: 500; margin-left: 6px; }
.tg-cmt p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.tg-cmt .act { margin-top: 4px; display: flex; gap: 10px; font-size: 12px; color: var(--ink-4); }
.tg-cmt .act button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
/* style.css .reply(사장님 답글 회색 박스)와 겹치지 않게 되돌림 */
.tg-cmt.reply { padding: 12px 0 12px 44px; background: none; border-radius: 0; font-size: inherit; margin-top: 0; }
.tg-cform { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.tg-cform textarea { min-height: 46px; }
.tg-cform .btn { min-height: 46px; flex: none; }

/* 신고·관리 작은 링크 */
.tg-tools { display: flex; gap: 12px; justify-content: flex-end; font-size: 12.5px; color: var(--ink-4); margin-top: 10px; }
.tg-tools a, .tg-tools button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.tg-tools a:hover, .tg-tools button:hover { color: var(--ink-2); }
.og-panel textarea.tg-in { margin-top: 10px; min-height: 60px; }

/* 로그인·가입 */
.tg-auth { max-width: 420px; margin: 28px auto 10px; }
.tg-kakao { background: #FEE500 !important; color: #191600 !important; }
.tg-naver { background: #03C75A !important; color: #fff !important; }
.tg-n { display: inline-grid; place-items: center; width: 18px; height: 18px; font: 900 14px/1 Arial, sans-serif; margin-right: 6px; }
.tg-social { display: grid; gap: 8px; margin-top: 18px; }
.tg-links { display: grid; gap: 8px; }
.tg-links .li { align-items: center; }
.tg-or { display: flex; align-items: center; gap: 10px; color: var(--ink-4); font-size: 12.5px; margin: 18px 0; }
.tg-or:before, .tg-or:after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 관리자 표 */
.tg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.tg-table th, .tg-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tg-table th { font-weight: 700; color: var(--ink-3); font-size: 12.5px; background: var(--bg-2); }
.tg-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tg-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--bg-3); color: var(--ink-2); }
.tg-badge.red { background: var(--red-bg); color: var(--red-ink); }
.tg-badge.ok { background: #E7F6EC; color: #1C7A3E; }

/* 사진 크게 보기 */
a:not([href]) > img, .menu a:not([href]), .port a { cursor: zoom-in; }
.tg-zoom { position: fixed; inset: 0; z-index: 9999; background: rgba(10,12,16,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.tg-zoom img { max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.tg-zoom p { color: #fff; margin: 12px 0 0; font-size: 15px; font-weight: 650; }
.tg-zoom button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; }
/* 분실물 카드 펼침 */
a.rcard:not([href]) { cursor: pointer; }
a.rcard.tg-open .tx p { -webkit-line-clamp: unset; display: block; }

/* 홈 날씨 줄: 「구름많음」 같은 하늘 상태가 두 줄로 깨지지 않게 */
.wxbar > * { white-space: nowrap; }
.wxbar .hl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .wxbar .dn { display: none; } }

/* 2026-10-20 운영팀 표시 */
.b.b-staff{background:#1A1D21;color:#fff;font-size:10px;padding:1px 6px;border-radius:999px;margin-left:4px;vertical-align:1px}

.tg-sub { color: var(--ink-3); font-size: 14px; margin: -4px 0 0; }

.tg-appbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
.tg-appbar[hidden] { display: none; }
.tg-appbar img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.tg-appbar span { flex: 1; min-width: 0; display: grid; }
.tg-appbar b { font-size: 14px; }
.tg-appbar small { color: var(--ink-3); font-size: 12px; }
.tg-appbar .x { background: none; border: 0; font-size: 20px; color: var(--ink-4); padding: 0 4px; cursor: pointer; }
@media (min-width: 960px) { .tg-appbar { display: none !important; } }
