:root {
  --bg: #090a0c;
  --panel: #111318;
  --line: #292d35;
  --text: #f5f5f2;
  --muted: #8d929c;
  --red: #ec322f;
  --cyan: #00c2ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 0, #241416 0, transparent 32rem), var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans JP", sans-serif;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  background: #090a0ce8;
  border-bottom: 1px solid #ffffff12;
  backdrop-filter: blur(14px);
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  display: block;
  width: clamp(132px, 14vw, 184px);
  line-height: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.top button,
.login-panel button {
  border: 1px solid #fff;
  background: #fff;
  color: #080808;
  padding: 9px 13px;
  font-weight: 900;
  cursor: pointer;
}
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 74px 20px 48px;
  border-bottom: 1px solid var(--line);
}
.profile {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 20px;
  border: 1px solid var(--cyan);
  background: linear-gradient(115deg, rgba(0, 194, 255, 0.11), var(--panel) 46%);
}
.profile small { color: var(--cyan); font-weight: 900; letter-spacing: .14em; }
.profile h2 { margin: 5px 0; }
.profile p { margin: 0; color: var(--muted); font-size: 12px; }
.profile > a { padding: 10px 12px; border: 1px solid var(--line); font-size: 10px; font-weight: 900; }
.avatar { display: grid; place-items: center; width: 60px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font-size: 12px; font-weight: 950; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow,
.section-head p,
.future > p {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.hero h1 {
  margin: 8px 0;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.07em;
}
.hero h1 i {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  font-style: normal;
}
.hero > p:not(.eyebrow) {
  color: #b7bbc3;
}
.member {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.login-panel {
  max-width: 760px;
  margin: 64px auto;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.login-panel p {
  line-height: 1.8;
  color: #c4c7ce;
}
.login-panel button {
  margin-top: 12px;
  min-width: 210px;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
#dashboard {
  max-width: 1180px;
  margin: auto;
  padding: 24px 20px 90px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 64px;
}
.quick a {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0e1014;
}
.quick span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}
.section-head {
  margin: 54px 0 18px;
}
.section-head p {
  margin: 0;
}
.section-head h2 {
  margin: 5px 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.card small {
  color: var(--muted);
}
.score {
  margin: 20px 0 5px;
  font-size: 34px;
  font-weight: 950;
}
.fitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fitment {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.fitment img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #08090b;
}
.fitment div {
  padding: 14px;
}
.fitment p {
  margin: 0 0 6px;
  font-weight: 900;
}
.fitment small {
  color: var(--muted);
}
.timeline {
  border-top: 1px solid var(--line);
}
.event {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.event time {
  color: var(--muted);
  font-size: 11px;
}
.future {
  margin-top: 60px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #15171c, #0d0f12);
}
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.future-grid span {
  padding: 13px;
  border: 1px solid #ffffff17;
  color: #b9bdc5;
}
.future small {
  color: var(--muted);
  line-height: 1.7;
}
.more {
  display: block;
  margin: 16px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.more[hidden], .is-extra[hidden] { display: none !important; }
.maintenance-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--muted); }
.maintenance-toolbar .more { margin: 0; }
.maintenance-entry { border: 1px solid var(--line); background: var(--panel); }
.maintenance-entry summary { padding: 18px 20px; color: var(--cyan); font-weight: 900; cursor: pointer; list-style: none; }
.maintenance-entry summary::-webkit-details-marker { display: none; }
#maintenance-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 0 20px 20px; }
#maintenance-form label { display: grid; gap: 7px; }
#maintenance-form label > span { color: var(--muted); font-size: 11px; font-weight: 800; }
#maintenance-form input, #maintenance-form select, #maintenance-form textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #3a3f49; border-radius: 0; background: #090b0e; color: #fff; font: inherit; }
#maintenance-form textarea { resize: vertical; }
#maintenance-form .wide { grid-column: 1 / -1; }
.unit-input { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid #3a3f49; background: #090b0e; }
.unit-input input { border: 0 !important; }
.unit-input b { padding: 0 12px; color: var(--muted); font-size: 12px; }
#maintenance-save { grid-column: 1 / -1; min-height: 48px; border: 1px solid var(--cyan); background: var(--cyan); color: #041015; font-weight: 950; cursor: pointer; }
.maintenance-list { display: grid; gap: 10px; margin-top: 16px; }
.maintenance-card { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); background: #0e1014; }
.maintenance-date { color: var(--muted); font-size: 12px; }
.maintenance-card h3 { margin: 0 0 6px; font-size: 17px; }
.maintenance-card p { margin: 4px 0; color: #c7cbd2; font-size: 13px; }
.maintenance-card small { color: var(--muted); }
.maintenance-delete { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
#toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: #fff;
  color: #111;
  opacity: 0;
  pointer-events: none;
}
#toast.on {
  opacity: 1;
}
@media (max-width: 680px) {
  .top {
    padding: 10px 12px;
  }
  .top nav > a {
    display: none;
  }
  .hero {
    padding: 50px 15px 34px;
  }
  .quick,
  .cards,
  .fitments {
    grid-template-columns: 1fr;
  }
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event {
    grid-template-columns: 90px 1fr;
  }
  .brand { width: 128px; }
  .profile { grid-template-columns: 52px 1fr; }
  .profile > a { grid-column: 1 / -1; text-align: center; }
  .avatar { width: 48px; }
  .maintenance-toolbar { display: block; }
  .maintenance-toolbar .more { margin: 12px 0 0; }
  #maintenance-form { grid-template-columns: 1fr; }
  #maintenance-form .wide, #maintenance-save { grid-column: auto; }
  .maintenance-card { grid-template-columns: 1fr auto; gap: 8px; }
  .maintenance-date { grid-column: 1 / -1; }
}
@media print {
  body { background: #fff; color: #111; }
  .top, .hero, .login-panel, .quick, #dashboard > section:not(.profile):not(.maintenance-section), .maintenance-entry, .more, .maintenance-delete, #toast { display: none !important; }
  #dashboard { display: block !important; max-width: none; padding: 0; }
  .profile, .maintenance-card { break-inside: avoid; border-color: #777; background: #fff; color: #111; }
  .profile { margin-bottom: 24px; }
  .profile > a { display: none; }
  .maintenance-section .section-head p { color: #333; }
  .maintenance-list { display: block; }
  .maintenance-card { margin-bottom: 8px; }
}
