:root {
  --bg: #f4f8fd;
  --card: #ffffff;
  --ink: #123056;
  --muted: #6a7f99;
  --line: #d7e3f2;
  --blue: #1d5fb5;
  --blue-soft: #e8f1fb;
  --shadow: 0 10px 30px rgba(18, 56, 102, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 420px at 10% -10%, #e7f0fb 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.app {
  max-width: 430px;
  margin: 0 auto;
  padding: 22px 20px calc(96px + env(safe-area-inset-bottom));
}

.hero {
  padding: 4px 4px 12px;
}

.kicker,
.lede {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: 0 4px 14px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: 32px;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9bb4ce;
}

.linkish,
.back,
.chip,
.pick,
.news-item,
.dock-btn {
  border: 0;
  font: inherit;
}

.linkish {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.chips {
  display: grid;
  gap: 6px;
  padding: 4px;
  background: #e7eef8;
  border-radius: 16px;
}

.chips {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.chip {
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
}

.chip.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dock-btn svg {
  width: 22px;
  height: 22px;
}

.dock-btn.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.status {
  margin: 0 4px 12px;
  color: var(--muted);
  font-size: 14px;
  min-height: 1.2em;
}

.pair,
.day,
.news-item,
.article,
.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.pair {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 16px 18px;
  margin-bottom: 10px;
}

.pair.is-now {
  background: var(--blue-soft);
  border-color: #c5d8ef;
}

.pair.is-now::before,
.day.is-today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.time b {
  display: block;
  font-size: 16px;
}

.time span,
.body p,
.day p,
.hint,
.news-item time,
.row span {
  color: var(--muted);
  font-size: 13px;
}

.body h2,
.day h3,
.news-item h2,
.article h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
}

.body p,
.day p {
  margin: 0;
}

.room {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.day {
  position: relative;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.day.is-today {
  background: var(--blue-soft);
}

.row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #edf3fa;
}

.row:first-of-type {
  border-top: 0;
  margin-top: 8px;
}

.row b {
  font-size: 13px;
}

.row em {
  color: var(--blue);
  font-style: normal;
  font-weight: 650;
  font-size: 13px;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  text-align: left;
  padding: 0 0 14px;
  margin-bottom: 14px;
  color: inherit;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border-radius: 0;
  background: #edf3fa;
  display: block;
}

.news-thumb.is-empty {
  background:
    linear-gradient(160deg, #e8f1fb 0%, #d7e3f2 100%);
}

.news-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 16px 2px;
}

.news-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-item h2 {
  font-size: 17px;
  line-height: 1.35;
}

.empty,
.loading,
.error {
  padding: 28px 8px;
  color: var(--muted);
  text-align: center;
}

.sheet {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: var(--bg);
  padding: calc(12px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  z-index: 6;
}

.back {
  background: #e7eef8;
  color: var(--blue);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 650;
  margin-bottom: 16px;
}

.article {
  padding: 18px;
}

.article img {
  width: 100%;
  border-radius: 16px;
  margin: 8px 0 12px;
  display: block;
  background: #edf3fa;
}

.photos {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.article p {
  line-height: 1.55;
  font-size: 15px;
  margin: 0 0 12px;
}

.article a.site {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.pick {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin: 8px 0;
  color: inherit;
  font-weight: 650;
}

.hint {
  margin: 8px 0 16px;
}
