:root {
  --bg: #050816;
  --panel: #0b1220;
  --line: rgba(95,220,255,.24);
  --text: #e8f4ff;
  --muted: #9fb2cc;
  --accent: #5fdcff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #14233f 0%, #050816 44%, #02040b 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.m-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 10px 12px;
  background: rgba(5,8,22,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 74px;
  height: 60px;
  object-fit: contain;
  transform: scaleX(1.06);
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.brand em {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desktop {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11,18,32,.82);
  text-decoration: none;
  font-size: 13px;
}

main {
  display: grid;
  gap: 14px;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom)) 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(11,18,32,.82);
  box-shadow: 0 0 28px rgba(95,220,255,.055);
}

.panel h1 {
  margin: 0 0 12px 0;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.search {
  display: grid;
  gap: 9px;
}

input,
button {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: 0 13px;
  font-size: 16px;
}

input {
  background: rgba(5,8,22,.92);
  color: var(--text);
}

button {
  background: var(--accent);
  color: #021018;
  border-color: rgba(95,220,255,.7);
  font-weight: 900;
}

.chips,
.days,
.cards {
  display: grid;
  gap: 9px;
}

.chip,
.day,
.archive {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(5,8,22,.70);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.25;
}

.chip.primary,
.archive {
  border-color: rgba(95,220,255,.36);
  background: rgba(95,220,255,.08);
}

.archive {
  margin-top: 12px;
  place-items: center;
  color: #e8f8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.m-card {
  display: block;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(95,220,255,.20);
  background: rgba(5,8,22,.74);
  text-decoration: none;
}

.m-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.22;
}

.m-card p {
  margin: 9px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.m-card span {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.muted {
  margin: 0;
  color: var(--muted);
}


/* 20260606_31 language switch + colder cyan CI */
.m-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-pill {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 44px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11,18,32,.82);
  color: var(--text);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.lang-pill.active {
  border-color: rgba(95,220,255,.62);
  background: rgba(95,220,255,.16);
  color: #e8fbff;
  box-shadow: 0 0 18px rgba(95,220,255,.16);
}

@media (max-width: 390px) {
  .brand {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
  }

  .brand img {
    width: 62px;
    height: 52px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .desktop {
    padding: 0 9px;
    font-size: 12px;
  }

  .lang-pill {
    min-width: 38px;
    padding: 0 7px;
  }
}

