@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/jakarta-400.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/jakarta-600.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/jakarta-700.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/inter-600.ttf") format("truetype");
}
:root {
  font-family: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
  color: #434345;
  background: #f8faf6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 5vw;
  border-bottom: 1px solid #dcece9;
  background: #fff;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand span {
  font-size: 17px;
  font-weight: 400;
  color: #66716e;
  letter-spacing: 0;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.badge {
  background: #e0f7f5;
  border-radius: 30px;
  padding: 5px 9px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 40px 5vw;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #00766f;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.7px;
  font-weight: 550;
  margin: 12px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
}
h3 {
  font-size: 17px;
  margin-top: 32px;
}
.muted {
  color: #526866;
}
.small {
  font-size: 12px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
button,
.button {
  display: inline-block;
  background: #ca0965;
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  color: #00766f;
  border-color: #c9dedb;
}
.quiet {
  color: #00766f;
  background: transparent;
  padding: 6px 10px;
}
a {
  color: #00766f;
  font-size: 13px;
}
input,
select {
  padding: 10px 12px;
  border: 1px solid #c9dedb;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
}
nav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #dcece9;
  margin-top: 35px;
}
nav button {
  border-radius: 0;
  background: transparent;
  color: #526866;
  padding: 15px 2px;
  border-bottom: 2px solid transparent;
}
nav .active {
  color: #ca0965;
  border-bottom-color: #ca0965;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0 28px;
}
article,
.panel {
  background: white;
  border: 1px solid #dcece9;
  border-radius: 10px;
}
article {
  padding: 24px;
}
.metric {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 550;
  letter-spacing: -1px;
  margin: 16px 0;
}
.panel {
  overflow: hidden;
  margin: 20px 0;
}
.panelhead {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.panelhead p {
  font-size: 13px;
  margin-bottom: 0;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: right;
  padding: 17px 24px;
  border-top: 1px solid #e9f1ee;
  font-size: 13px;
}
th {
  background: #f5faf8;
  color: #526866;
  font-weight: 500;
  font-size: 11px;
}
th:first-child,
td:first-child {
  text-align: left;
}
td:first-child {
  font-weight: 500;
}
.negative,
.error {
  color: #a34136;
}
.error:empty {
  display: none;
}
.error {
  font-size: 13px;
}
.footnote,
.panelnote {
  color: #526866;
  font-size: 11px;
  padding: 16px 0;
  line-height: 1.7;
}
.panelnote {
  padding: 8px 25px;
}
.settings {
  padding: 30px;
  max-width: 850px;
}
.settings p {
  color: #526866;
  font-size: 14px;
  line-height: 1.7;
}
.settings p.error {
  color: #a34136;
}
.login {
  padding-top: 15vh;
  max-width: 900px;
}
.login h1 {
  margin: 45px 0 20px;
}
.login p {
  line-height: 1.8;
}
.login .button {
  margin: 20px 0;
}
dialog {
  border: 1px solid #dcece9;
  border-radius: 12px;
  padding: 30px;
  width: min(460px, 95vw);
  color: inherit;
}
dialog::backdrop {
  background: #43434566;
}
dialog h2 {
  margin: 15px 0 25px;
}
label {
  display: block;
  font-size: 12px;
  margin: 18px 0;
}
label input,
label select {
  width: 100%;
  margin-top: 7px;
}
footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .account {
    font-size: 10px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .panelhead {
    align-items: flex-start;
    flex-direction: column;
  }
  header {
    padding: 20px 5vw;
  }
  .account .badge {
    display: none;
  }
}
@media (max-width: 520px) {
  header {
    align-items: flex-start;
    gap: 18px;
  }
  .account {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    display: block;
    font-size: 13px;
  }
  .cards {
    gap: 8px;
  }
  article {
    padding: 18px;
  }
  .metric {
    font-size: 23px;
  }
  main {
    padding-top: 28px;
  }
  nav {
    gap: 24px;
  }
  th,
  td {
    padding: 16px;
  }
  dialog {
    padding: 23px;
  }
}

/* Brand tokens taken from yamaneco.co.jp. Darker accents retain text contrast. */
:root {
  --yamaneco-pink: #ed107b;
  --yamaneco-teal: #00afa5;
  --yamaneco-grey: #434345;
  --warm-white: #f8faf6;
  --soft-teal: #e0f7f5;
  --pink-ink: #ca0965;
}
h1,
h2,
h3,
.metric,
.eyebrow {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}
.brand img {
  width: 168px;
  height: auto;
  display: block;
}
.brand span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: #526866;
  padding-left: 17px;
  border-left: 1px solid #c9dedb;
  letter-spacing: 0.03em;
}
header {
  border-top: 4px solid var(--yamaneco-pink);
}
h1 {
  font-weight: 600;
  line-height: 1.15;
  color: #29292b;
}
.eyebrow {
  color: var(--pink-ink);
}
.intro {
  padding: 12px 0;
}
nav .active {
  border-bottom: 3px solid var(--yamaneco-pink);
}
.cards article {
  position: relative;
  box-shadow: 0 5px 20px #43434505;
  border-top: 3px solid var(--yamaneco-teal);
}
.cards article:nth-child(n + 3) {
  border-top-color: var(--yamaneco-pink);
}
.panel {
  box-shadow: 0 5px 20px #43434504;
  border-radius: 12px;
}
button,
.button {
  font-weight: 600;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}
button:hover,
.button:hover {
  box-shadow: 0 3px 12px #43434515;
}
button:not(.quiet):not(.secondary):not(nav button):hover,
.button:not(.secondary):hover {
  background: #aa0755;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #00766f;
  outline-offset: 3px;
}
.badge {
  color: #006b64;
}
.login {
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 12vh max(6vw, 24px);
  background:
    radial-gradient(ellipse at 93% 12%, #e0f7f5 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, #fde6f0 0%, transparent 65%), #f8faf6;
  border-top: 5px solid var(--yamaneco-pink);
}
.login h1 {
  max-width: 800px;
  font-size: clamp(36px, 5.5vw, 68px);
  letter-spacing: -2px;
}
.login .brand {
  margin-bottom: 68px;
}
.login .button {
  padding: 15px 24px;
  border-radius: 8px;
}
.login p {
  max-width: 580px;
}
.connection-status {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #c9dedb;
  border-left: 4px solid var(--yamaneco-teal);
  border-radius: 8px;
  background: #f5faf8;
}
.connection-status.attention {
  border-left-color: #b13d31;
  background: #fff6f2;
}
.connection-status strong {
  font-size: 14px;
}
.connection-status p {
  margin: 8px 0 0;
}
.connection-status dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  font-size: 12px;
  color: #526866;
}
.connection-status dd {
  margin: 0;
}
@media (max-width: 650px) {
  header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand img {
    width: 142px;
  }
  .brand span {
    display: block;
    font-size: 12px;
  }
  .account {
    margin-left: auto;
  }
  .connection-status dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .connection-status dd {
    margin-bottom: 8px;
  }
  .login .brand {
    margin-bottom: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
  }
}

/* Keep heading word spacing legible with the brand font. */
h1 {letter-spacing:-.9px;word-spacing:.04em;}
h2 {letter-spacing:-.2px;}
