:root {
  font-family: Inter, Arial, sans-serif;
  color: #18263a;
  background: #f3f5f9;
  font-synthesis: none;
  --blue: #2156de;
  --ink: #15233b;
  --line: #dce2eb;
  --muted: #65738a;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 0;
}
h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.8125rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
}
label small {
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9c5d6;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}
textarea {
  resize: vertical;
  min-height: 96px;
}
.primary,
.secondary,
.danger,
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 650;
  border: 1px solid transparent;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #1646c7;
}
.secondary {
  background: #fff;
  border-color: #c6d0df;
  color: var(--ink);
}
.secondary:hover {
  background: #f0f4ff;
}
.danger {
  background: #ae283d;
  color: #fff;
}
.text-button {
  border: 0;
  background: none;
  padding: 10px 0;
  color: var(--blue);
  font-size: 0.875rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 10px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.09em;
  text-decoration: none;
}
.wordmark span {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  font-weight: 700;
  max-width: 125px;
  line-height: 1.6;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1120px;
  min-height: 100vh;
  margin: auto;
  padding: 60px 28px;
  gap: 90px;
  align-items: center;
}
.intro .wordmark {
  margin-bottom: 70px;
}
.intro h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
.intro > p:not(.wordmark) {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 410px;
}
.boundary {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.boundary span {
  display: block;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 18px 55px #13285409;
}
.auth-card > p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.auth-card form > .primary {
  width: 100%;
  margin-top: 8px;
}
.auth-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}
.auth-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #f3f5f9;
}
.error {
  color: #a22032;
  font-size: 0.875rem;
  margin: 14px 0 0;
}
.error:empty {
  display: none;
}
.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #142338;
  color: #eef4ff;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .wordmark {
  margin: 0 0 56px;
  color: #fff;
}
.sidebar nav {
  display: grid;
  gap: 10px;
}
.sidebar nav button {
  background: transparent;
  border: 0;
  color: #bac9de;
  text-align: left;
  padding: 14px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
}
.sidebar nav button.active {
  background: #253c5c;
  color: #fff;
}
.sidebar nav button span {
  font-size: 0.75rem;
  opacity: 0.65;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-bottom p {
  font-size: 0.8125rem;
  color: #acbdd3;
  margin: 14px 0;
}
.sidebar-bottom small {
  display: block;
  overflow-wrap: anywhere;
  color: #acbdd3;
}
.local-dot {
  font-size: 0.8125rem;
}
.local-dot:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #8eb4ff;
  border-radius: 50%;
  margin-right: 8px;
}
.logout {
  background: none;
  border: 1px solid #41526b;
  color: #e6edf8;
  width: 100%;
  margin-top: 16px;
}
.main {
  padding: 38px 44px 24px;
  min-width: 0;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 34px;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.metrics article {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.metrics article + article {
  border-left: 1px solid var(--line);
}
.metrics span {
  font-size: 0.875rem;
  color: #53647a;
}
.metrics strong {
  font-size: 2.25rem;
  letter-spacing: -0.06em;
  line-height: 1.4;
  font-weight: 600;
  margin: 6px 0;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.search {
  flex: 1;
  max-width: 360px;
}
.filter {
  min-width: 180px;
}
.store-list {
  display: grid;
  gap: 12px;
}
.store-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 175px 180px auto;
  gap: 20px;
  align-items: center;
  padding: 23px 24px;
}
.store-row h3 {
  margin: 0;
  font-size: 1.0625rem;
}
.store-row p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.store-row button {
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6dfec;
  color: #506078;
  background: #f3f6fa;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge.blue {
  color: #2351b0;
  background: #eff4ff;
  border-color: #d4e0fd;
}
.badge.amber {
  color: #825b18;
  background: #fff8ea;
  border-color: #ecdcb8;
}
.empty {
  background: #fff;
  border: 1px dashed #bac7d9;
  border-radius: var(--radius);
  text-align: center;
  padding: 60px 20px;
}
.empty h2 {
  font-size: 1.4rem;
}
.empty p {
  color: var(--muted);
  max-width: 430px;
  margin: 0 auto 22px;
}
.footnote,
.section-description {
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 16px 0 0;
}
.event-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 24px;
}
.event {
  display: grid;
  grid-template-columns: 150px 1fr 160px;
  gap: 20px;
  padding: 18px 24px;
  font-size: 0.875rem;
}
.event + .event {
  border-top: 1px solid var(--line);
}
.event small {
  display: block;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}
.detail-top p {
  color: var(--muted);
  font-size: 0.875rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel h3 {
  margin-bottom: 20px;
}
.definitions {
  margin: 0;
  display: grid;
  gap: 16px;
}
.definitions > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
}
.definitions dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.definitions dd {
  font-size: 0.875rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.check {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.check:last-child {
  border-bottom: 0;
}
.check p {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.panel + .panel {
  margin-top: 20px;
}
.package-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.archive-area {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: min(640px, calc(100vw - 28px));
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 24px 120px #0d1c3455;
}
dialog::backdrop {
  background: #15233b88;
}
dialog p {
  font-size: 0.875rem;
  color: var(--muted);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.dialog-head h2 {
  margin-bottom: 12px;
}
.icon-button {
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  padding: 8px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #f3f5f9;
  padding: 20px;
  font-size: 0.875rem;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #142338;
  color: white;
  border-radius: 9px;
  font-size: 0.875rem;
  box-shadow: 0 8px 30px #15233b22;
  z-index: 20;
  max-width: 90vw;
  display: none;
}
#notice.visible {
  display: block;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1120px) {
  .main {
    padding: 28px;
  }
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 18px;
  }
  .store-row {
    grid-template-columns: minmax(140px, 1fr) 130px auto;
  }
  .store-health {
    display: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics article {
    padding: 20px;
  }
  .auth-shell {
    gap: 35px;
  }
}
@media (max-width: 740px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
  }
  .sidebar .wordmark {
    margin: 0 0 20px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .sidebar nav button {
    padding: 9px 13px;
    font-size: 0.875rem;
  }
  .sidebar nav button span {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
  }
  .sidebar-bottom .local-dot,
  .sidebar-bottom p {
    display: none;
  }
  .sidebar-bottom small {
    flex: 1;
  }
  .sidebar-bottom .logout {
    width: auto;
    margin-top: 0;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .main {
    padding: 24px 18px;
  }
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .topbar h1 {
    font-size: 1.7rem;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions > .primary {
    flex: 1;
  }
  .metrics {
    margin-bottom: 20px;
  }
  .metrics article {
    padding: 16px 12px;
  }
  .metrics span {
    font-size: 0.8125rem;
    min-height: 42px;
  }
  .metrics strong {
    font-size: 1.9rem;
  }
  .metrics small {
    font-size: 0.75rem;
  }
  .store-row {
    padding: 18px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .store-status {
    grid-column: 1;
    grid-row: 2;
  }
  .store-row button {
    grid-column: 2;
    grid-row: 1/3;
  }
  .store-row h3 {
    font-size: 1rem;
  }
  .filter {
    min-width: 135px;
  }
  .section-toolbar {
    gap: 8px;
  }
  .event {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 5px;
  }
  .detail-top {
    flex-wrap: wrap;
  }
  .definitions > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-shell {
    display: block;
    padding: 26px 18px;
  }
  .intro {
    margin-bottom: 25px;
  }
  .intro .wordmark {
    margin-bottom: 30px;
  }
  .intro h1 {
    font-size: 2rem;
  }
  .intro > p:not(.wordmark),
  .boundary {
    display: none;
  }
  .auth-card {
    padding: 24px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  dialog {
    padding: 24px;
  }
  .app-footer {
    font-size: 0.75rem;
  }
}
