:root {
  --orekey-account-surface: rgba(11, 15, 21, 0.94);
  --orekey-account-border: rgba(139, 161, 185, 0.22);
  --orekey-account-text: #e7edf4;
  --orekey-account-muted: #97a5b5;
  --orekey-account-cyan: #2dd4ff;
  --orekey-account-green: #44d17c;
  --orekey-account-gold: #d6a13d;
}

.orekey-account,
.orekey-account * {
  box-sizing: border-box;
}

.orekey-account {
  width: min(1180px, calc(100% - 28px));
  margin: 32px auto 72px;
  color: var(--orekey-account-text);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
}

.orekey-account__hero,
.orekey-account__stats,
.orekey-account__section,
.orekey-account-auth {
  border: 1px solid var(--orekey-account-border);
  border-radius: 10px;
  background: var(--orekey-account-surface);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.orekey-account__hero {
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.13), transparent 46%),
    var(--orekey-account-surface);
}

.orekey-account__identity {
  display: flex;
  gap: 20px;
  align-items: center;
}

.orekey-account__avatar {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  border: 1px solid rgba(45, 212, 255, 0.5);
  border-radius: 16px;
  color: #03141c;
  background: linear-gradient(145deg, #8beeff, var(--orekey-account-cyan));
  font-size: 32px;
  font-weight: 900;
}

.orekey-account h1,
.orekey-account h2,
.orekey-account h3,
.orekey-account p {
  margin-top: 0;
}

.orekey-account h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.orekey-account__identity p:last-child,
.orekey-account__section > header > p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--orekey-account-muted);
  line-height: 1.75;
}

.orekey-account__eyebrow {
  margin-bottom: 7px;
  color: var(--orekey-account-cyan);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.orekey-account__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
}

.orekey-account__notice {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid var(--orekey-account-border);
  border-radius: 8px;
  background: var(--orekey-account-surface);
}

.orekey-account__notice--success {
  border-color: rgba(68, 209, 124, 0.44);
  color: #bdf6d3;
}

.orekey-account__notice--error {
  border-color: rgba(255, 107, 125, 0.5);
  color: #ffc3ca;
}

.orekey-account__stats > div {
  display: grid;
  min-height: 108px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 15px 8px;
  background: rgba(5, 7, 10, 0.54);
  text-align: center;
}

.orekey-account__stats strong {
  color: var(--orekey-account-cyan);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 28px;
}

.orekey-account__stats span {
  color: var(--orekey-account-muted);
  font-size: 12px;
}

.orekey-account__stats .is-upcoming strong,
.orekey-account__stats .is-upcoming span {
  color: #657181;
}

.orekey-account__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.orekey-account-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(45, 212, 255, 0.5);
  border-radius: 7px;
  color: #03141c;
  background: linear-gradient(180deg, #78e9ff, var(--orekey-account-cyan));
  font-weight: 800;
  text-decoration: none;
}

.orekey-account__section {
  margin-top: 16px;
  padding: 20px;
}

.orekey-account__section > header {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--orekey-account-border);
}

.orekey-account__section h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.orekey-account__posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}

.orekey-account-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--orekey-account-border);
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.54);
}

.orekey-account-card__image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.orekey-account-card__body {
  min-width: 0;
  padding: 14px;
}

.orekey-account-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--orekey-account-muted);
  font-size: 11px;
}

.orekey-account-card__status {
  padding: 3px 7px;
  border: 1px solid var(--orekey-account-border);
  border-radius: 999px;
}

.orekey-account-card__status.is-pending {
  border-color: rgba(214, 161, 61, 0.5);
  color: #f0c979;
}

.orekey-account-card__status.is-draft {
  border-color: rgba(139, 161, 185, 0.38);
  color: #b8c3cf;
}

.orekey-account-card__status.is-publish {
  border-color: rgba(68, 209, 124, 0.44);
  color: #86e6aa;
}

.orekey-account-card h3 {
  margin: 10px 0 7px;
  font-size: 17px;
  line-height: 1.45;
}

.orekey-account-card__category,
.orekey-account-card__excerpt,
.orekey-account-card__next {
  color: var(--orekey-account-muted);
  font-size: 12px;
  line-height: 1.6;
}

.orekey-account-card__category {
  margin-bottom: 7px;
  color: var(--orekey-account-cyan);
}

.orekey-account-card__excerpt {
  margin-bottom: 10px;
}

.orekey-account-card a {
  color: var(--orekey-account-cyan);
  font-size: 12px;
  font-weight: 700;
}

.orekey-account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.orekey-account-card__actions form {
  margin: 0;
}

.orekey-account-card__actions button {
  padding: 0;
  border: 0;
  color: #f0c979;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.orekey-account-card__actions button:hover,
.orekey-account-card__actions button:focus-visible,
.orekey-account-card__actions a:hover,
.orekey-account-card__actions a:focus-visible {
  text-decoration: underline;
}

.orekey-account__empty {
  margin: 16px 0 0;
  padding: 24px;
  border: 1px dashed var(--orekey-account-border);
  border-radius: 8px;
  color: var(--orekey-account-muted);
  text-align: center;
}

.orekey-account-auth {
  max-width: 720px;
  margin: 48px auto;
  padding: 28px;
  color: var(--orekey-account-text);
  text-align: center;
}

@media (max-width: 1080px) {
  .orekey-account__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orekey-account__posts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .orekey-account {
    width: min(100% - 18px, 1180px);
    margin-top: 14px;
  }

  .orekey-account__hero,
  .orekey-account__section {
    padding: 16px;
  }

  .orekey-account__identity,
  .orekey-account__section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .orekey-account__avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 12px;
    font-size: 25px;
  }

  .orekey-account__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orekey-account__actions,
  .orekey-account-button {
    width: 100%;
  }

  .orekey-account-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .orekey-account-card__image img {
    min-height: 180px;
  }
}
