* {
  box-sizing: border-box;
}

:root {
  --blue: #1677ff;
  --blue-dark: #0f2f6f;
  --blue-soft: #eaf4ff;
  --ink: #172033;
  --text: #354057;
  --muted: #7b8497;
  --line: #e3e8f2;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --green: #17a56b;
  --green-bg: #e8f8f0;
  --orange: #d98218;
  --orange-bg: #fff7e6;
  --red: #e04848;
  --red-bg: #fff1f0;
  --gray-bg: #f2f4f7;
  --shadow: 0 10px 28px rgba(26, 47, 83, 0.06);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #eef2f7;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.prototype {
  min-height: 100vh;
}

.login-view {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 209, 255, 0.25), transparent 30%),
    radial-gradient(circle at 78% 14%, rgba(119, 78, 255, 0.34), transparent 34%),
    linear-gradient(138deg, #060a2a 0%, #111157 46%, #361477 100%);
  isolation: isolate;
}

.login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(61, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 38%, black 100%);
  transform: perspective(520px) rotateX(62deg) translateY(235px) scale(1.45);
  transform-origin: bottom center;
  filter: drop-shadow(0 0 10px rgba(52, 209, 255, 0.48));
  z-index: -2;
}

.login-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 42, 0.08), rgba(7, 11, 42, 0.34)),
    url("assets/cyber-city-login.png") center / cover no-repeat;
  opacity: 0.52;
  z-index: -3;
}

.tech-block {
  position: absolute;
  border: 1px solid rgba(129, 218, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(83, 177, 255, 0.16), rgba(180, 99, 255, 0.08));
  box-shadow: 0 0 28px rgba(64, 196, 255, 0.22), inset 0 0 18px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.tech-block.one {
  width: 128px;
  height: 92px;
  top: 92px;
  left: 94px;
  transform: rotate(-8deg);
}

.tech-block.two {
  width: 190px;
  height: 126px;
  right: 86px;
  top: 118px;
  transform: rotate(7deg);
}

.tech-block.three {
  width: 116px;
  height: 116px;
  left: 154px;
  bottom: 116px;
  transform: rotate(12deg);
}

.login-card {
  width: min(1120px, 88vw);
  min-height: 560px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.login-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 31, 87, 0.04), rgba(12, 21, 70, 0.26)),
    url("assets/cyber-city-login.png") center / cover no-repeat;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(19, 43, 130, 0.18), transparent 52%),
    radial-gradient(circle at 62% 34%, rgba(0, 221, 255, 0.22), transparent 28%);
}

.visual-note {
  position: absolute;
  left: 34px;
  bottom: 32px;
  width: 276px;
  padding: 18px 20px;
  border: 1px solid rgba(193, 236, 255, 0.44);
  border-radius: 18px;
  background: rgba(7, 14, 53, 0.48);
  color: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.visual-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.visual-note span {
  color: rgba(228, 243, 255, 0.8);
  font-size: 13px;
  line-height: 1.6;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 42px 56px;
  background: rgba(255, 255, 255, 0.96);
}

.login-form {
  width: 100%;
  max-width: 372px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1677ff, #705cff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(22, 119, 255, 0.34);
  font-weight: 800;
  font-size: 20px;
}

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

.login-form h1 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.2;
}

.subtitle {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #39445a;
  font-size: 14px;
  font-weight: 600;
}

.input-shell,
.select-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 56, 92, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form .input-shell {
  height: 46px;
  border-radius: 10px;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.11);
}

.field.is-error .input-shell {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(224, 72, 72, 0.09);
}

.input-shell input,
.select-shell select,
textarea {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
  border-radius: 8px;
  color: #1d2638;
  background: transparent;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  resize: vertical;
  line-height: 1.7;
  background: #fff;
}

.icon-button {
  width: 38px;
  height: 38px;
  margin-right: 3px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #8b96aa;
}

.icon-button:hover {
  color: var(--blue);
  background: #f4f8ff;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 10px;
}

.captcha-image {
  height: 46px;
  border: 1px solid #cfe4ff;
  border-radius: 10px;
  color: #105fca;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(112, 92, 255, 0.13)),
    repeating-linear-gradient(-18deg, transparent 0 8px, rgba(22, 119, 255, 0.08) 8px 10px);
  font-family: "Courier New", monospace;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 4px;
}

.error-text {
  min-height: 16px;
  margin-top: 6px;
  color: var(--red);
  font-size: 12px;
  line-height: 16px;
  opacity: 0;
}

.field.is-error .error-text {
  opacity: 1;
}

.login-button,
.primary-button,
.primary-small {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.23);
  font-weight: 700;
}

.login-button {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 16px;
}

.primary-button {
  min-width: 108px;
  height: 38px;
  padding: 0 18px;
}

.primary-small {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.login-button:active,
.primary-button:active,
.primary-small:active,
.ghost-button:active,
.text-button:active {
  transform: translateY(1px);
}

.form-footnote {
  margin-top: 10px;
  color: #a0a8b8;
  text-align: center;
  font-size: 12px;
}

.admin-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  min-height: 100vh;
  padding: 22px 14px;
  background: #12213d;
  color: #c8d5ef;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677ff, #35a5ff);
  color: #fff;
  font-weight: 800;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  color: #fff;
  font-size: 15px;
}

.sidebar-brand span {
  margin-top: 3px;
  color: #8da2c4;
  font-size: 12px;
}

.nav-list {
  padding: 16px 0 30px;
}

.nav-group + .nav-group {
  margin-top: 18px;
}

.nav-heading {
  padding: 0 10px 8px;
  color: #7f91b4;
  font-size: 12px;
  font-weight: 700;
}

.nav-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 0;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #d7e2f7;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.nav-link span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64789e;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.24);
}

.nav-link.active span {
  background: #fff;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar-title {
  color: #141c2f;
  font-size: 17px;
  font-weight: 800;
}

.topbar-subtitle {
  margin-top: 3px;
  color: #8a94a8;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.sync-chip {
  color: #2c6d4a;
  background: var(--green-bg);
}

.user-chip {
  color: #276ed8;
  background: #eef5ff;
}

.ghost-button,
.text-button,
.muted-button,
.danger-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #42506a;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ghost-button:hover,
.muted-button:hover {
  color: var(--blue);
  border-color: #bad8ff;
  background: #f6faff;
}

.text-button {
  border-color: transparent;
  padding: 0 4px;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.text-button.warn {
  color: var(--orange);
}

.text-button.danger,
.danger-button {
  color: var(--red);
}

.danger-button {
  border-color: #ffd4d1;
  background: #fff;
}

.content-area {
  min-width: 0;
  overflow: auto;
  padding: 22px 26px 42px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: #7f8ba3;
  font-size: 13px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.page-head h2 {
  margin-bottom: 6px;
  color: #111827;
  font-size: 22px;
  line-height: 1.28;
}

.page-head p {
  max-width: 780px;
  margin-bottom: 0;
  color: #6f7a90;
  font-size: 14px;
  line-height: 1.55;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  border: 1px solid #ffe3a6;
  border-radius: 8px;
  padding: 11px 13px;
  color: #7b4b00;
  background: var(--orange-bg);
  font-size: 13px;
  line-height: 1.55;
}

.notice-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: #f6a01a;
  font-size: 12px;
  font-weight: 800;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
}

.panel-subtitle {
  margin-top: 4px;
  color: #7c8799;
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid #edf1f6;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  color: #69758a;
  background: #fafbfd;
  font-weight: 800;
}

td {
  color: #334155;
}

tr:last-child td {
  border-bottom: 0;
}

.order-cell {
  width: 56px;
  color: #667085;
  font-weight: 800;
}

.name-cell strong,
.game-name strong {
  display: block;
  color: #192233;
  font-weight: 800;
  word-break: keep-all;
}

.name-cell span,
.game-name span {
  display: block;
  margin-top: 3px;
  color: #8a94a8;
  font-size: 12px;
  word-break: keep-all;
}

.media-thumb {
  width: 112px;
  height: 58px;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #dce7f8 url("assets/cyber-city-login.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.media-thumb.square {
  width: 64px;
  height: 64px;
}

.media-thumb.wide {
  width: 138px;
  height: 54px;
}

.media-thumb.video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(9, 20, 48, 0.66);
  transform: translate(-50%, -50%);
}

.media-thumb.video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  border-left: 10px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translate(-33%, -50%);
}

.media-thumb.missing {
  display: grid;
  place-items: center;
  color: #9aa4b5;
  background: #f1f4f8;
  font-size: 12px;
}

.media-thumb.missing::before,
.media-thumb.missing::after {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.tag.green {
  color: #087348;
  background: var(--green-bg);
}

.tag.blue {
  color: #1264d6;
  background: var(--blue-soft);
}

.tag.orange {
  color: #9b5a00;
  background: var(--orange-bg);
}

.tag.red {
  color: #b42318;
  background: var(--red-bg);
}

.tag.gray {
  color: #667085;
  background: var(--gray-bg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: #7a8598;
  font-size: 13px;
}

.pager button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #536078;
}

.pager button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.split-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.category-list {
  padding: 10px;
  display: grid;
  gap: 10px;
}

.category-row {
  width: 100%;
  display: grid;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  text-align: left;
}

.category-row:hover {
  background: #f8fbff;
}

.category-row.active {
  border-color: #b9d8ff;
  background: #eef6ff;
}

.category-main {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.category-index {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe4ff;
  border-radius: 8px;
  color: #1f73df;
  background: #f2f8ff;
  font-size: 12px;
  font-weight: 900;
}

.category-row.active .category-index {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.category-copy {
  min-width: 0;
  display: block;
}

.category-copy strong {
  display: block;
  overflow: hidden;
  color: #202a3b;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-copy span {
  display: block;
  margin-top: 4px;
  color: #8a94a8;
  font-size: 12px;
}

.category-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 48px;
}

.category-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
}

.category-action-buttons .text-button {
  min-height: 24px;
  padding: 0;
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  padding: 16px;
}

.filter-field label,
.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #5b6578;
  font-size: 12px;
  font-weight: 800;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.asset-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.asset-toolbar .select-shell {
  width: 260px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.summary-item span {
  display: block;
  color: #8791a4;
  font-size: 12px;
}

.summary-item strong {
  display: block;
  margin-top: 5px;
  color: #1e293b;
  font-size: 18px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.asset-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.asset-card h3 {
  margin-bottom: 6px;
  color: #172033;
  font-size: 15px;
}

.asset-card p {
  margin-bottom: 10px;
  color: #778196;
  font-size: 12px;
  line-height: 1.55;
}

.asset-editor {
  overflow: hidden;
}

.asset-game-line {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px 8px;
}

.asset-selector {
  width: 310px;
  flex: 0 0 auto;
}

.asset-selector > span {
  display: block;
  margin-bottom: 7px;
  color: #61708a;
  font-size: 12px;
  font-weight: 800;
}

.asset-selector .select-shell {
  width: 100%;
}

.asset-game-line dl {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-game-line dl div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 18px;
}

.asset-game-line dt,
.asset-game-line dd {
  margin: 0;
  min-width: 0;
  font-size: 13px;
}

.asset-game-line dt {
  color: #5d6980;
  font-weight: 800;
}

.asset-game-line dd {
  color: #1d2a44;
  font-weight: 800;
}

.asset-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 16px 10px;
  border: 1px solid #ffd8ad;
  border-radius: 8px;
  padding: 9px 12px;
  color: #c55a00;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.asset-note {
  margin: 0 16px 10px;
  color: #5f6f91;
  font-size: 13px;
  line-height: 1.6;
}

.asset-table {
  min-width: 1250px;
}

.asset-table th,
.asset-table td {
  padding: 10px 12px;
}

.asset-section-row td {
  padding: 8px 12px;
  color: #243b77;
  background: #f1f5ff;
  font-size: 14px;
  font-weight: 900;
}

.asset-row-missing {
  background: #fffdfd;
}

.asset-name {
  color: #263653;
  font-weight: 900;
}

.asset-preview-box {
  width: 172px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e2f1;
  border-radius: 8px;
  background: #f8fbff;
}

.asset-preview-box .media-thumb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.asset-preview-box.missing {
  color: #9aa4b5;
  background:
    linear-gradient(135deg, #f7f9fc, #edf1f8);
  font-size: 13px;
  font-weight: 800;
}

.source-config {
  display: grid;
  gap: 7px;
}

.source-radio-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #30405f;
  font-size: 13px;
  font-weight: 800;
}

.source-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.source-tabs {
  display: inline-flex;
  width: max-content;
  overflow: hidden;
  border: 1px solid #d8e4f6;
  border-radius: 7px;
  background: #fff;
}

.source-tabs button {
  min-width: 58px;
  height: 28px;
  border: 0;
  color: #52627e;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.source-tabs button.active {
  color: #fff;
  background: var(--blue);
}

.upload-box {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px dashed #adc6eb;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1f5fcc;
  background: #f8fbff;
  text-align: center;
}

.upload-box strong,
.upload-box span {
  display: block;
}

.upload-box strong {
  font-size: 13px;
}

.upload-box span {
  margin-top: 2px;
  color: #7b8aa6;
  font-size: 11px;
}

.source-url-label {
  color: #5d6980;
  font-size: 12px;
  font-weight: 800;
}

.source-input {
  width: 100%;
  height: 30px;
  border: 1px solid #d8e2f1;
  border-radius: 6px;
  padding: 0 9px;
  color: #20314f;
  background: #fff;
  font-size: 12px;
}

.source-input.muted {
  color: #71809a;
  background: #f1f4f8;
}

.asset-inline-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.format-tip {
  color: #23345b;
  line-height: 1.45;
  font-weight: 700;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.asset-actions .primary-small,
.asset-actions .muted-button {
  min-width: 58px;
}

.asset-op-note {
  width: 100%;
  color: #7d8799;
  font-size: 12px;
  line-height: 1.45;
}

.asset-op-note.danger {
  color: var(--red);
  font-weight: 800;
}

.asset-save-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.asset-save-warning {
  color: #df1f1f;
  font-size: 13px;
  font-weight: 900;
}

.asset-save-warning::before {
  content: "!";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: #ff2f2f;
  font-size: 12px;
}

.save-status {
  min-height: 30px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.save-status.good {
  color: #147244;
  background: #e9f8ef;
}

.save-status.pending {
  color: #52627e;
  background: #f1f4fb;
}

.asset-footer-actions {
  display: flex;
  gap: 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.detail-admin {
  display: grid;
  gap: 14px;
}

.detail-game-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  min-height: 50px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-game-summary div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.detail-game-summary span {
  color: #5d6980;
  font-size: 13px;
  font-weight: 800;
}

.detail-game-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #18243a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-impact-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffd8ad;
  border-radius: 8px;
  padding: 10px 13px;
  color: #d35400;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.detail-dashboard {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.4fr);
  gap: 14px;
  align-items: start;
}

.detail-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-panel {
  overflow: hidden;
}

.detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.detail-panel-head h3 {
  margin: 0;
  color: #18243a;
  font-size: 16px;
  line-height: 1.25;
}

.basic-info-list {
  display: grid;
  gap: 18px;
  padding: 8px 18px 42px;
}

.basic-info-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 22px;
}

.basic-info-row span {
  color: #5d6980;
  font-size: 14px;
}

.basic-info-row strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
}

.detail-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eef2f7;
  padding: 12px 18px;
}

.detail-card-foot span {
  color: #77839a;
  font-size: 13px;
}

.detail-card-foot.compact {
  justify-content: flex-start;
}

.detail-card-foot.compact .muted-button {
  min-width: 104px;
}

.detail-content-panel {
  padding-bottom: 8px;
}

.rich-editor-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 18px;
}

.rich-editor-row > label {
  padding-top: 8px;
  color: #3d4a62;
  font-size: 14px;
  font-weight: 800;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  border-bottom: 1px solid #edf1f6;
  padding: 0 8px;
}

.rich-toolbar button {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  color: #25314b;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.rich-toolbar button:hover {
  color: var(--blue);
  background: #f3f8ff;
}

.rich-toolbar button.muted {
  color: #b6bfce;
}

.rich-editor textarea {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  color: #334155;
  line-height: 1.65;
  background: #fff;
  resize: vertical;
}

.detail-material-list {
  display: grid;
  padding: 0 18px 12px;
}

.detail-material-row {
  display: grid;
  grid-template-columns: 148px minmax(180px, 1fr) minmax(132px, 0.78fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid #edf1f6;
  padding: 16px 0;
}

.detail-material-row:first-child {
  border-top: 0;
}

.material-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.material-name strong {
  color: #25314b;
  font-size: 14px;
}

.material-preview {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 72px;
}

.material-preview .media-thumb {
  width: 100%;
  height: 100%;
}

.material-meta {
  display: grid;
  gap: 8px;
  color: #68758e;
  font-size: 13px;
  line-height: 1.45;
}

.material-meta em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.detail-param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px 24px;
  padding: 4px 18px 18px;
}

.detail-param-field {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.detail-param-field label,
.trial-row label {
  color: #59677f;
  font-size: 14px;
  font-weight: 800;
}

.detail-param-field input,
.detail-param-field select,
.trial-row input {
  width: 100%;
  height: 36px;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  padding: 0 12px;
  color: #27344f;
  background: #fff;
  outline: 0;
}

.trial-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 18px 0;
}

.trial-row input {
  color: #71809a;
  background: #f1f4f8;
}

.detail-save-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 112px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.detail-save-note {
  color: #5e6f91;
  font-size: 13px;
  font-weight: 800;
}

.detail-save-note::before {
  content: "i";
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: #5b8def;
  font-size: 12px;
  font-weight: 900;
}

.readonly-card {
  padding: 16px;
}

.readonly-card .media-thumb {
  width: 100%;
  height: 154px;
  margin-bottom: 14px;
}

.meta-list {
  display: grid;
  gap: 10px;
  color: #4f5b70;
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #e1e7f0;
  padding-bottom: 8px;
}

.meta-row span:first-child {
  color: #8791a4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 146px 24px 40px;
  background: rgba(15, 23, 42, 0.42);
}

.modal {
  width: min(720px, calc(100vw - 48px));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 82px rgba(15, 23, 42, 0.24);
}

.modal.wide {
  width: min(960px, calc(100vw - 48px));
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  padding: 16px 18px;
}

.modal-foot {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.close-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.close-button:hover {
  background: #f2f4f7;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.preview-card .media-thumb {
  width: 150px;
  height: 82px;
}

.modal-alert {
  margin-top: 12px;
  border-radius: 8px;
  padding: 9px 11px;
  color: #a61b1b;
  background: var(--red-bg);
  font-size: 13px;
}

.reference-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.reference-summary h4 {
  margin: 0 0 5px;
  color: #1e293b;
  font-size: 15px;
}

.reference-section {
  margin-top: 14px;
}

.reference-section h4 {
  margin: 0 0 8px;
  color: #253044;
  font-size: 14px;
}

.reference-section table {
  min-width: 760px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  min-width: 220px;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid #bfe7d2;
  border-radius: 8px;
  color: #116143;
  background: #f1fbf6;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.13);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .admin-view {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  .split-layout,
  .detail-layout,
  .detail-dashboard {
    grid-template-columns: 1fr;
  }

  .detail-material-row {
    grid-template-columns: 160px minmax(220px, 300px) minmax(180px, 1fr);
  }

  .filters,
  .summary-strip,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .login-view {
    padding: 24px;
  }

  .login-card {
    grid-template-columns: 1fr;
    width: min(560px, 94vw);
  }

  .login-visual {
    min-height: 230px;
  }

  .login-panel {
    min-height: auto;
    padding: 32px 26px;
  }

  .admin-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .workspace {
    min-height: 100vh;
  }

  .topbar,
  .page-head,
  .reference-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-game-summary,
  .detail-param-grid,
  .detail-save-bar,
  .asset-game-line dl {
    grid-template-columns: 1fr;
  }

  .detail-material-row,
  .rich-editor-row,
  .trial-row,
  .basic-info-row,
  .detail-param-field {
    grid-template-columns: 1fr;
  }

  .material-preview {
    width: 100%;
  }

  .filters,
  .summary-strip,
  .asset-grid,
  .form-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
}
