:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f7f9fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
label.upload {
  border: 0;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.install {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(34, 48, 73, 0.08);
}

.install-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #246bfe;
  margin-bottom: 20px;
}

.install-icon::before {
  content: "⇧";
  font-size: 30px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

p {
  color: #596579;
  line-height: 1.5;
}

.primary,
.upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: #246bfe;
}

.success {
  color: #13724b;
  font-weight: 600;
}

.error,
.error-panel {
  color: #9f1d2d;
}

.state.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid #b9c5d8;
  border-top-color: #246bfe;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

.embedded {
  min-height: 100vh;
  background: #ffffff;
  padding: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6ebf2;
  padding-bottom: 14px;
}

.toolbar h1 {
  font-size: 20px;
}

.toolbar p {
  margin: 4px 0 0;
  font-size: 13px;
}

.upload input {
  display: none;
}

.upload.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.error-panel {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f0c3ca;
  border-radius: 7px;
  background: #fff6f7;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  padding: 12px;
}

.file-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.file-main strong {
  overflow-wrap: anywhere;
}

.file-main span {
  color: #68758a;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #36445a;
  background: #eef3fa;
}

.empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #68758a;
  border: 1px dashed #c7d0df;
  border-radius: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
