:root {
  --ink: #101827;
  --muted: #68758a;
  --line: #dde4ef;
  --blue: #3568e8;
  --bg: #f1f4fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.7 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 32px));
  height: 70px;
  margin: auto;
}
.detail-header > a:last-child {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.detail-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}
.detail-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}
.detail-shell {
  width: min(930px, calc(100% - 32px));
  margin: 28px auto 90px;
}
.back {
  display: inline-block;
  margin-bottom: 15px;
  color: #536176;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.detail-card,
.maker-note {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(35, 49, 77, 0.05);
}
.detail-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  padding: 24px;
}
.detail-cover {
  overflow: hidden;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #edf1f7;
}
.detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-summary {
  align-self: center;
  padding: 10px 8px;
}
.category {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #2252c7;
  background: #eaf0ff;
  font-size: 11px;
  font-weight: 850;
}
.detail-summary h1 {
  margin: 13px 0 10px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.detail-summary p {
  margin: 0;
  color: #526078;
}
.launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-weight: 900;
}
.app-specs {
  grid-column: 1/-1;
  margin: 0;
  border-top: 1px solid var(--line);
}
.app-specs > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.app-specs dt {
  color: #76849a;
  font-size: 12px;
  font-weight: 800;
}
.app-specs dd {
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chips span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #2252c7;
  background: #eaf0ff;
  font-size: 11px;
  font-weight: 800;
}
.chips.tags span {
  color: #4d5b70;
  background: #f0f3f7;
}
.maker-note {
  margin-top: 22px;
  padding: 27px;
}
.maker-note h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.maker-note p {
  margin: 0;
  white-space: normal;
  color: #44526a;
}
@media (max-width: 720px) {
  .detail-card {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    min-height: 220px;
  }
  .app-specs {
    grid-column: auto;
  }
  .app-specs > div {
    grid-template-columns: 90px 1fr;
  }
  .detail-summary h1 {
    font-size: 26px;
  }
}
.detail-cover.icon-cover {
  display: grid;
  place-items: center;
}
.detail-cover.icon-cover img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(36, 50, 80, 0.2);
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}
.network-home {
  padding-left: 12px !important;
  border-left: 1px solid #dce2ec;
  color: #7b8493 !important;
  text-decoration: none;
  font-size: 11px !important;
  font-weight: 800;
}
.detail-brand span {
  background: #111 !important;
}
.detail-header .brand-cluster {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}
.share-box {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 25px;
  align-items: center;
  margin-top: 8px;
  padding: 24px;
  border-radius: 16px;
  background: #f4f7fb;
}
.share-box h2 {
  margin: 0;
  font-size: 18px;
}
.share-box p {
  margin: 3px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.share-box img {
  display: block;
  border: 8px solid #fff;
  border-radius: 12px;
  background: #fff;
}
.qr-open {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}
.qr-open span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  padding: 5px;
  border-radius: 7px;
  color: #fff;
  background: rgba(16, 24, 39, 0.78);
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.18s;
}
.qr-open:hover span,
.qr-open:focus-visible span {
  opacity: 1;
}
.qr-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 20px;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}
.qr-dialog::backdrop {
  background: rgba(7, 18, 41, 0.76);
  backdrop-filter: blur(5px);
}
.qr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.qr-dialog-head h2 {
  margin: 0;
}
.qr-dialog-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #526078;
  background: #eef2f7;
  font-size: 25px;
  cursor: pointer;
}
.qr-dialog > img {
  width: min(450px, calc(100vw - 68px));
  height: auto;
  margin: auto;
  border: 0;
}
.qr-dialog > p {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.short-row {
  display: flex;
}
.short-row input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #cfd8e6;
  border-radius: 9px 0 0 9px;
  background: #fff;
  color: #44526a;
  font: inherit;
}
.short-row button {
  padding: 0 15px;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
@media (max-width: 620px) {
  .share-box {
    grid-template-columns: 1fr;
  }
  .share-box img {
    margin: auto;
  }
  .short-row {
    display: grid;
    gap: 7px;
  }
  .short-row input,
  .short-row button {
    min-height: 43px;
    border-radius: 9px;
  }
}
.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.detail-toolbar .back {
  margin: 0;
}
.manage-actions {
  display: flex;
  gap: 7px;
}
.manage-actions button {
  padding: 7px 13px;
  border: 1px solid #cbd5e3;
  border-radius: 8px;
  color: #42516a;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.manage-actions button:hover {
  border-color: #93a4bd;
  background: #f8fafc;
}
.manage-actions button.danger {
  border-color: #fecaca;
  color: #b42318;
  background: #fff7f7;
}
.notice {
  margin-bottom: 15px;
  padding: 12px 15px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 700;
}
.notice.error {
  border-color: #fecaca;
  color: #b42318;
  background: #fff7f7;
}
.manage-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}
.manage-dialog::backdrop {
  background: rgba(7, 18, 41, 0.72);
  backdrop-filter: blur(4px);
}
.dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.dialog-head p {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.dialog-head h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-head > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #526078;
  background: #eef2f7;
  font-size: 25px;
  cursor: pointer;
}
.manage-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}
.manage-form label {
  display: grid;
  gap: 6px;
  color: #3d4b60;
  font-size: 12px;
  font-weight: 800;
}
.manage-form input,
.manage-form select,
.manage-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cbd5e3;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.manage-form textarea {
  resize: vertical;
}
.manage-form input:focus,
.manage-form select:focus,
.manage-form textarea:focus {
  outline: 3px solid rgba(53, 104, 232, 0.14);
  border-color: var(--blue);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.password-field {
  padding: 14px;
  border-radius: 11px;
  background: #f4f7fb;
}
.password-field small {
  color: var(--muted);
  font-weight: 500;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 3px;
}
.dialog-actions .button {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.dialog-actions .primary {
  color: #fff;
  background: var(--blue);
}
.dialog-actions .secondary {
  color: #44526a;
  background: #edf1f6;
}
.dialog-actions .delete {
  color: #fff;
  background: #c62828;
}
.delete-dialog {
  width: min(500px, calc(100vw - 28px));
}
.delete-warning {
  margin: 0;
  padding: 15px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  color: #991b1b;
  background: #fff7f7;
}
@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .dialog-head,
  .manage-form {
    padding: 18px;
  }
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dialog-actions .button {
    min-height: 44px;
  }
}


.deploy-update {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #f5f8ff;
}
.deploy-update strong {
  color: #173d8e;
  font-size: 13px;
}
.deploy-update strong span {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #3365ca;
  background: #e1ebff;
  font-size: 10px;
  vertical-align: 1px;
}
.deploy-update p {
  margin: 5px 0 0;
  color: #526078;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}
.deploy-update input[type="file"] {
  padding: 9px;
  background: #fff;
}
.deploy-update small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}
