*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f0; color: #1a1a1a; }
.hdr { background: #12122a; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.hdr .logo { color: #c8a96e; font-size: 17px; font-weight: 500; }
.nav { display: flex; gap: 6px; margin-top: 6px; }
.nav-btn { background: none; border: 1px solid rgba(200,169,110,0.3); border-radius: 8px; color: #8888aa; font-size: 12px; padding: 5px 12px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.nav-btn:hover { background: rgba(200,169,110,0.12); color: #c8a96e; }
.et-block { display: flex; flex-direction: column; align-items: flex-end; }
.et-lbl { color: #8888aa; font-size: 11px; }
.et-val { color: #e8d5a3; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.et-real { color: #8888aa; font-size: 11px; }
.body { max-width: 680px; margin: 0 auto; padding: 16px 20px; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input { flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; outline: none; }
.search-row input:focus { border-color: #888; }
.search-results { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.search-result-item { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f5f5; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.f-btn { border: 1px solid #ccc; border-radius: 99px; background: #fff; color: #666; font-size: 12px; padding: 4px 14px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.f-btn:hover { border-color: #888; color: #1a1a1a; }
.f-btn.on { background: #12122a; color: #c8a96e; border-color: #12122a; }
.sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-g { background: #4CAF50; }
.dot-o { background: #FF9800; }
.sec-lbl { font-size: 12px; font-weight: 500; color: #666; text-transform: uppercase; letter-spacing: 0.06em; }
.card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.card:hover { border-color: #aaa; background: #fafafa; }
.card:active { transform: scale(0.99); }
.card.active { border-left: 3px solid #4CAF50; padding-left: 11px; }
.card.upcoming { border-left: 3px solid #FF9800; padding-left: 11px; }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 99px; font-weight: 500; white-space: nowrap; }
.b-leg { background: #faeeda; color: #633806; }
.b-uns { background: #e1f5ee; color: #085041; }
.b-enkei { background: #eeedfe; color: #3c3489; }
.b-saikutsu { background: #faece7; color: #712b13; }
.b-ryoshi { background: #e6f1fb; color: #0c447c; }
.item-name { font-size: 15px; font-weight: 500; flex: 1; color: #1a1a1a; }
.loc { font-size: 12px; color: #666; margin-bottom: 8px; }
.params { display: flex; gap: 8px; flex-wrap: wrap; }
.param-chip { background: #f5f5f0; border: 1px solid #e8e8e8; border-radius: 8px; padding: 3px 10px; font-size: 11px; color: #666; }
.param-chip span { color: #1a1a1a; font-weight: 500; }
.timer-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.timer-bar-wrap { flex: 1; height: 5px; background: #e8e8e8; border-radius: 3px; overflow: hidden; }
.timer-bar { height: 5px; border-radius: 3px; transition: width 1s linear; }
.t-g { color: #4CAF50; font-size: 12px; font-weight: 500; white-space: nowrap; }
.t-o { color: #FF9800; font-size: 12px; font-weight: 500; white-space: nowrap; }
.real-time { font-size: 11px; color: #888; white-space: nowrap; }
.divider { height: 1px; background: #e8e8e8; margin: 14px 0; }
.click-hint { font-size: 11px; color: #999; text-align: right; margin-bottom: 6px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #666; cursor: pointer; border: none; background: none; padding: 0; margin-bottom: 14px; transition: color 0.15s; }
.back-btn:hover { color: #1a1a1a; }
.detail-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.info-cell { background: #f5f5f0; border-radius: 8px; padding: 10px 12px; }
.info-lbl { font-size: 11px; color: #666; margin-bottom: 3px; }
.info-val { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.param-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.param-cell { background: #f5f5f0; border-radius: 8px; padding: 12px 14px; }
.param-cell-lbl { font-size: 11px; color: #666; margin-bottom: 4px; }
.param-cell-val { font-size: 20px; font-weight: 500; color: #1a1a1a; }
.param-cell-unit { font-size: 12px; color: #888; margin-left: 3px; }
.status-on { background: #e8f5e9; color: #1b5e20; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 99px; }
.status-off { background: #fff3e0; color: #e65100; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 99px; }
.map-placeholder { background: #f5f5f0; border: 1px dashed #ccc; border-radius: 8px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.sec-title { font-size: 12px; font-weight: 500; color: #666; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.empty { font-size: 13px; color: #888; padding: 20px 0; text-align: center; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 16px;
}
.s-title {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.ad-block {
  background: #f5f5f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ad-lbl {
  font-size: 11px;
  color: #aaa;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-decoration: none;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover .link-name { color: #12122a; }
.link-name { font-size: 13px; color: #444; }
.tag-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #f0ede8;
  border-radius: 99px;
  font-size: 11px;
  padding: 3px 10px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s;
}
.tag:hover { background: #e8e4de; color: #333; }