/* school 급식 앱 전용(10-20 표준 틀 이관) — 옛 05_school-lunch/css/style.css 에서 틀·머리글·사이드바·광고·안내 규칙을 뺀 것 */
:root{--brand-dark:#1d4ed8;--brand-light:#dbeafe;--surface:#fff;--text-muted:#5b6b8c;--radius:16px;--radius-sm:10px;--shadow-sm:0 2px 8px rgba(37,99,235,.08);--vote-red:#E0334C}  /* 허브 style.css 에 없는 변수만 — 파랑 계열 */
.app-card{background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;}
.type-tabs{display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;}
.type-tab{padding: 7px 16px;
  border-radius: 20px 20px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  transition: all .15s;}
.type-tab.active{background: var(--brand);
  color: #fff;}
.search-wrap{padding: 14px 16px 0;
  position: relative;}
.search-row{display: flex;
  gap: 8px;}
.search-row input{flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  outline: none;
  background: var(--bg);
  transition: border-color .15s;}
.search-row input:focus{border-color: var(--brand);}
.search-row button{padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;}
.search-row button:hover{background: var(--brand-dark);}
.recent-queries-dropdown{position: absolute;
  top: calc(100% + 2px);
  left: 16px; right: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid var(--border);
  z-index: 100;}
.rq-header{padding: 8px 12px 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;}
.rq-item{width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;}
.rq-item:hover{background: var(--bg);}
.section-block{padding: 14px 16px 0;}
.section-title{font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);}
.recent-school-card{display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background .15s;}
.recent-school-card:hover{background: var(--brand-light);}
.recent-school-info .school-name{font-size: 15px; font-weight: 600; color: var(--text);}
.recent-school-info .school-sub{font-size: 12px; color: var(--text-muted); margin-top: 2px;}
.recent-school-actions{display: flex; align-items: center; gap: 8px;}
.chip-select{font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--brand-light);}
.chip-delete{font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: #F5F5F5;
  border: 1px solid #E0E0E0;
  cursor: pointer;}
.chip-delete:hover{background: #FFE0E0; color: #E00; border-color: #FFAAAA;}
.rank-card{background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border);}
.rank-top{display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;}
.rank-medal{font-size: 22px;}
.rank-dish{font-size: 16px; font-weight: 700; flex: 1;}
.rank-count{font-size: 13px; color: var(--vote-red); font-weight: 700;}
.rank-schools{display: flex; flex-wrap: wrap; gap: 5px;}
.rank-share-btn{width: 100%;
  margin-top: 4px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  transition: opacity .15s;}
.rank-share-btn:hover{opacity: .88;}
.rank-school-chip{font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 500;}
.search-result-item{width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background .15s;}
.search-result-item:last-child{border-bottom: none;}
.search-result-item:hover{background: var(--bg);}
.result-name{font-size: 15px; font-weight: 600; color: var(--text);}
.result-sub{font-size: 13px; color: var(--text-muted);}
.search-empty{text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;}
.search-loading{text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px;}
.date-nav{display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
  background: var(--brand);
  color: #fff;}
.nav-btn{width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;}
.nav-btn:hover{background: rgba(255,255,255,.4);}
.nav-btn:disabled{opacity: .35; cursor: not-allowed;}
.date-center{flex: 1; text-align: center;}
.date-label{font-size: 14px; opacity: .9;}
.day-badge{display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  color: #fff;
  border-radius: 20px;
  padding: 2px 14px;}
.day-badge.today{background: rgba(255,255,255,.95);
  color: var(--brand);}
.swipe-hint{text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);}
.meal-section{padding: 16px; border-bottom: 1px solid var(--border);}
.meal-section:last-child{border-bottom: none;}
.meal-type-row{display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;}
.meal-type-label{font-size: 15px; font-weight: 700;}
.meal-cal{font-size: 12px; color: var(--text-muted);}
.menu-summary{padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 10px;}
.subsection-label{font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;}
.dish-chips{display: flex; flex-wrap: wrap; gap: 5px;}
.dish-chip{font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;}
.nutrition-grid{display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 10px;}
.nutrition-grid .full-row{grid-column: 1 / -1;}
.ntr-row{display: flex; justify-content: space-between;}
.ntr-name{color: var(--text-muted);}
.ntr-value{font-weight: 600; color: var(--text);}
.allergen-box{padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #FFFBF0;
  border: 1px solid #FFE58F;
  margin-bottom: 10px;
  font-size: 12px;}
.allergen-label{font-size: 11px; color: #A67C00; font-weight: 600; margin-bottom: 6px;}
.allergen-row{display: flex; gap: 6px; margin-bottom: 4px;}
.allergen-row:last-child{margin-bottom: 0;}
.allergen-dish{color: var(--text); font-weight: 600; white-space: nowrap;}
.allergen-list{color: #856404;}
.vote-box{padding: 12px;
  border-radius: var(--radius-sm);
  background: #FFF8F8;
  border: 1px solid #FFE0E0;
  margin-bottom: 10px;}
.vote-label{font-size: 11px; color: #E05050; font-weight: 600; margin-bottom: 8px;}
.vote-chips{display: flex; flex-wrap: wrap; gap: 6px;}
.vote-chip{font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-weight: 700;
  border: 2px solid #ddd;
  transition: all .15s;
  cursor: pointer;}
.vote-chip:hover{border-color: var(--vote-red); color: var(--vote-red);}
.vote-chip.voted{background: var(--vote-red);
  color: #fff;
  border-color: var(--vote-red);
  box-shadow: 0 2px 8px rgba(224,51,76,.3);}
.share-btn{width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background .15s;}
.share-btn:hover{background: var(--brand-light); color: var(--brand-dark);}
.day-nav-btns{display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);}
.day-nav-btn{flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background .15s;}
.day-nav-btn:hover{background: var(--brand-light); color: var(--brand-dark);}
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 16px 14px;
  line-height: 1.6;}
.week-nav{display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
  background: var(--brand);
  color: #fff;}
.week-label{flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: #fff;}
.week-day-card{padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;}
.week-day-card:last-child{border-bottom: none;}
.week-day-card:hover{background: var(--bg);}
.week-day-card.today-card{background: var(--brand-light);
  border-left: 3px solid var(--brand);}
.week-day-head{display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;}
.week-day-circle{width: 30px; height: 30px;
  border-radius: 50%;
  background: #DDD;
  color: #555;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;}
.week-day-circle.today-circle{background: var(--brand); color: #fff;}
.week-day-date{font-size: 13px; color: var(--text-muted);}
.week-today-badge{font-size: 11px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;}
.week-detail-hint{margin-left: auto; font-size: 11px; color: var(--text-muted);}
.week-dish-chips{display: flex; flex-wrap: wrap; gap: 5px;}
.week-dish-chip{font-size: 12px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 500;}
.week-no-meal{font-size: 13px; color: var(--text-muted);}
.tab-bar{display: flex;
  border-top: 1px solid var(--border);
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;}
.tab-btn{flex: 1;
  padding: 12px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  transition: color .15s;}
.tab-btn span:first-child{font-size: 22px;}
.tab-btn.active{color: var(--brand); font-weight: 700;}
.error-box{margin: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;}
.error-box.quota{background: #FFF3CD; border: 1px solid #FFD700;}
.error-title{font-weight: 700; margin-bottom: 4px;}
.error-sub{color: var(--text-muted); font-size: 13px;}
.retry-btn{margin-top: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;}
.no-meal-box{text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;}
.link-icon{margin-right: 8px; font-size: 15px; flex-shrink: 0; margin-top: 1px;}
.link-content{flex: 1; min-width: 0;}
.link-title{display: block; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.link-desc{display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.toast{position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 999;}
.toast.show{opacity: 1; transform: translateX(-50%) translateY(0);}
.loading-box{text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;}
.examples-section{background: #fff; border-radius: 12px; padding: 20px; margin-top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06);}
#random-examples{display: flex; flex-direction: column; gap: 8px;}
.example-link{display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: all .15s;}
.example-link:hover{background: #fff; border-color: var(--brand); transform: translateX(2px);}
.example-link .ex-icon{font-size: 20px; flex-shrink: 0;}
.example-link .ex-text{display: flex; flex-direction: column; gap: 2px; min-width: 0;}
.example-link .ex-title{font-size: 14px; font-weight: 600; color: var(--text);}
.example-link .ex-sub{font-size: 12px; color: var(--text-muted);}
