:root {
  --bg: #fdf8f5; --primary: #b5694e; --primary-soft: #f5e6df;
  --primary-hover: #9e5b42; --nav-bg: #f5ddd4; --nav-active: #b5694e;
  --text: #2d2418; --text-muted: #9a8a80; --border: #e8d8cf;
  --section-title: #7a6a60;
}
* { box-sizing: border-box; }
body { background: var(--bg); font-family: 'Apple SD Gothic Neo','Malgun Gothic','Segoe UI',sans-serif; color: var(--text); margin: 0; padding: 0 0 72px; }

/* 헤더 */
.top-header { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.brand { font-size: 1rem; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.breadcrumb-area { font-size: .8rem; color: var(--text-muted); }
.top-icon-btn { color: var(--text-muted); font-size: 1.1rem; text-decoration: none; background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 0; transition: color .15s; }
.top-icon-btn:hover { color: var(--primary); }
.home-link-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--primary); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; flex-shrink: 0; transition: background .15s; }
.home-link-btn i { font-size: 1rem; }
.home-link-btn:hover { background: var(--primary-hover); color: #fff; }

/* 하단 네비 */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--nav-bg); border-top: 1px solid var(--border); display: flex; z-index: 200; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0 8px; text-decoration: none; color: var(--text-muted); font-size: .7rem; gap: 3px; transition: color .15s; }
.bottom-nav a i { font-size: 1.35rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--nav-active); }

/* 메인 */
.main-content { min-height: calc(100vh - 56px - 72px); padding: 0; }
.page-header { padding: 20px 20px 4px; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }

/* 섹션 */
.section-block { margin: 16px 0; padding: 0 20px; }
.section-title { font-size: .78rem; font-weight: 600; color: var(--section-title); letter-spacing: .3px; margin-bottom: 8px; padding: 0 2px; }
.section-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.section-card.tint-notice { background: #fef9e6; border-color: #f5e9a0; }
.section-card.tint-schedule { background: #e8f0fb; border-color: #bdd0ef; }
.section-card.tint-inventory { background: #f0e6d3; border-color: #d9c4a8; }

/* 통계 */
.stat-row { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.stat-cell { flex: 1; text-align: center; padding: 18px 8px 14px; border-right: 1px solid var(--border); cursor: pointer; transition: background .1s; text-decoration: none; color: inherit; display: block; }
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--primary-soft); }
.stat-number { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .72rem; color: var(--text-muted); margin-top: 5px; }

/* 리스트 */
.list-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(0,0,0,.06); text-decoration: none; color: var(--text); transition: background .1s; cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(0,0,0,.03); }

/* 배지 */
.badge-pill { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; flex-shrink: 0; }
.badge-draft   { background: #fee2d5; color: #b5694e; }
.badge-confirm { background: #dbeafe; color: #1e40af; }
.badge-done    { background: #f0fdf4; color: #15803d; }
.badge-notice  { background: #fef3c7; color: #92400e; }
.badge-event   { background: #dcfce7; color: #166534; }

/* 버튼 */
.btn-warm { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s; font-family: inherit; }
.btn-warm:hover { background: var(--primary-hover); color: #fff; }
.btn-warm-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 10px; padding: 8px 16px; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; font-family: inherit; }
.btn-warm-outline:hover { background: var(--primary-soft); }

/* 폼 */
.form-section { padding: 20px; }
.form-group { margin-bottom: 18px; }
.form-label-warm { display: block; font-size: .82rem; font-weight: 700; color: var(--section-title); margin-bottom: 6px; }
.form-control-warm { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .9rem; background: #fff; color: var(--text); outline: none; transition: border-color .15s; font-family: inherit; }
.form-control-warm:focus { border-color: var(--primary); }
.form-control-warm::placeholder { color: #c4b0a8; }

/* 테이블 */
.warm-table { width: 100%; border-collapse: collapse; }
.warm-table th { font-size: .75rem; color: var(--text-muted); padding: 10px 14px; border-bottom: 1.5px solid var(--border); background: rgba(255,255,255,.6); text-align: left; font-weight: 600; }
.warm-table td { font-size: .88rem; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.05); }
.warm-table tr:last-child td { border-bottom: none; }

/* 플래시 */
.flash-area { padding: 12px 20px 0; }
.flash-msg { padding: 12px 16px; border-radius: 10px; font-size: .88rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* 빈 상태 */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: 8px; }
.empty-state p { font-size: .85rem; margin: 0 0 12px; }

/* more 링크 */
.more-link { display: block; text-align: center; padding: 10px; font-size: .8rem; color: var(--primary); text-decoration: none; font-weight: 600; border-top: 1px solid rgba(0,0,0,.06); }
.more-link:hover { background: rgba(0,0,0,.03); }

/* 섹션 내 헤더 */
.section-inner-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px 10px; font-size: .82rem; font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.07); }
.section-inner-header a { font-size: .75rem; color: var(--primary); text-decoration: none; font-weight: 600; }

/* 로그인 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#f5ddd4 0%,#fdf8f5 50%,#e8f0fb 100%); padding: 24px; padding-bottom: 0; }
.login-box { background: #fff; border-radius: 20px; padding: 2.5rem 2rem; width: 100%; max-width: 380px; box-shadow: 0 8px 40px rgba(181,105,78,.15); border: 1px solid var(--border); }
.login-icon { font-size: 3rem; color: var(--primary); }

/* 게시글 */
.notice-content { line-height: 1.85; font-size: .95rem; color: #4a3a30; white-space: pre-wrap; }

/* 모달 공통 */
.modal-stats-bar { background: #f5f0ee; border-radius: 10px; padding: 10px 14px; font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; font-weight: 500; }
.modal-btn-primary { width: 100%; padding: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; transition: background .15s; text-decoration: none; }
.modal-btn-primary:hover { background: var(--primary-soft); }
.modal-hint { font-size: .78rem; color: var(--text-muted); line-height: 1.75; margin: 12px 2px; }
.modal-divider { height: 1px; background: var(--border); margin: 16px 0; }
.modal-section-label { font-size: .8rem; font-weight: 700; color: var(--section-title); margin-bottom: 10px; }
.modal-btn-outline { width: 100%; padding: 13px; background: transparent; border: 1.5px dashed var(--border); border-radius: 14px; font-size: .88rem; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit; transition: all .15s; }
.modal-btn-outline:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.modal-btn-close { width: 100%; padding: 14px; background: #f5f0ee; border: none; border-radius: 14px; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit; transition: background .15s; }
.modal-btn-close:hover { background: var(--border); }

@media (min-width: 768px) {
  .section-block { padding: 0 32px; }
  .page-header { padding: 24px 32px 4px; }
  .form-section { padding: 24px 32px; }
  .top-header { padding: 14px 32px; }
}
