body {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.98), rgba(238, 243, 248, 0.94)), #f6f8fb;
}

.release-topbar { background: rgba(255, 255, 255, 0.9); }

.release-shell {
  display: grid;
  gap: 14px;
  width: min(1460px, calc(100vw - 32px));
  margin: 20px auto 36px;
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.release-summary > div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.release-summary > div:last-child { border-right: 0; }
.release-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.release-summary strong { font-size: 24px; font-variant-numeric: tabular-nums; }

.release-workspace {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.release-sidebar,
.release-editor,
.release-placeholder {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.release-sidebar { position: sticky; top: 96px; display: grid; gap: 12px; padding: 14px; }
.release-sidebar-head,
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.release-sidebar h2,
.release-editor h2 { font-size: 18px; }

.release-search { position: relative; display: block; }
.release-search svg { position: absolute; top: 50%; left: 11px; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.release-search input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px 0 36px; background: #fff; color: var(--text); }

.release-list { display: grid; gap: 7px; max-height: calc(100vh - 250px); overflow-y: auto; }
.release-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(201, 214, 229, 0.8);
  border-radius: 8px;
  padding: 9px;
  background: rgba(250, 252, 255, 0.84);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.release-row:hover,
.release-row.active { border-color: rgba(24, 113, 255, 0.55); background: #fff; }
.release-row.active { box-shadow: inset 3px 0 0 var(--primary); }
.platform-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-strong); }
.platform-icon svg { width: 18px; height: 18px; }
.release-row-copy { display: grid; gap: 3px; min-width: 0; }
.release-row-copy strong,
.release-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-row-copy small { color: var(--muted); font-size: 11px; }
.release-version { color: var(--primary-strong); font-size: 11px; font-weight: 800; white-space: nowrap; }
.release-list-empty { padding: 28px 12px; color: var(--muted); text-align: center; }

.release-editor { display: grid; gap: 18px; padding: 18px; }
.release-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.release-fields .detail-wide { grid-column: 1 / -1; }
.release-toggles { display: flex; flex-wrap: wrap; gap: 18px; border-block: 1px solid var(--line); padding: 13px 0; }
.release-toggles label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.release-toggles input { width: 18px; height: 18px; accent-color: var(--primary); }

.asset-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.asset-upload-block { display: grid; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: rgba(247, 250, 253, 0.82); }
.asset-title { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.asset-title > svg { width: 22px; height: 22px; color: var(--primary); }
.asset-title div { display: grid; gap: 3px; min-width: 0; }
.asset-title small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.asset-upload-block input[type="file"] { max-width: 100%; color: var(--muted); }
.asset-upload-block .button { justify-self: start; }

.release-placeholder,
.release-empty { display: grid; gap: 12px; place-items: center; min-height: 360px; padding: 28px; text-align: center; }
.release-empty { width: min(600px, calc(100vw - 32px)); margin: 70px auto; }
.release-placeholder svg,
.release-empty > svg { width: 38px; height: 38px; color: var(--primary); }
.release-empty p { color: var(--muted); }
.release-feedback { position: sticky; bottom: 14px; justify-self: center; border: 1px solid; border-radius: 8px; padding: 10px 14px; background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.release-feedback.error { border-color: #edb3b3; color: #a62f2f; }
.release-feedback.success { border-color: #a9dfca; color: #116b48; }

.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.release-row:active { transform: scale(0.97); }

@media (max-width: 1080px) {
  .release-workspace { grid-template-columns: 300px minmax(0, 1fr); }
  .release-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .release-shell { width: min(100vw - 24px, 720px); margin-top: 14px; }
  .release-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-summary > div:nth-child(2) { border-right: 0; }
  .release-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .release-workspace { grid-template-columns: 1fr; }
  .release-sidebar { position: static; }
  .release-list { max-height: 330px; }
  .asset-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .release-topbar { align-items: flex-start; padding: 12px; }
  .release-topbar .auth-actions { justify-content: flex-end; }
  .release-topbar .user-label { display: none; }
  .release-fields { grid-template-columns: 1fr; }
  .release-fields .detail-wide { grid-column: auto; }
  .release-row { grid-template-columns: 38px minmax(0, 1fr); }
  .release-version { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .release-row,
  .button,
  .icon-button { transition: none; }
}
