.hdr {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 20;
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.hdr img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.hdr b {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.hdr small { color: #ecdca0; }

.hdr .sp1 { flex: 1; }

.hdr button {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}

.nav {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 10px 8px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow: auto;
}

.nav button {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  color: var(--ink);
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 8px;
}

.nav button:hover { background: #eef2f8; }
.nav button.on    { background: var(--navy); color: #fff; }

.page {
  padding: 14px;
  min-width: 0;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    bottom: 0;
    top: auto;
    right: 0;
    left: 0;
    height: auto;
    display: flex;
    overflow-x: auto;
    gap: 2px;
    border-left: 0;
    border-top: 1px solid var(--line);
    z-index: 30;
    padding: 4px;
  }

  .nav button {
    white-space: nowrap;
    width: auto;
    margin: 0;
    padding: 8px 12px;
  }

  .page { padding-bottom: 80px; }
}

.login {
  max-width: 430px;
  margin: 40px auto;
  padding: 0 14px;
}

.login .box { border-top: 5px solid var(--gold); }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tabs button {
  flex: 1;
  background: #eef2f8;
  color: var(--navy);
}

.tabs button.on {
  background: var(--navy);
  color: #fff;
}