.admin .android-options { margin-top: 20px; }
.admin .android-options fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.android-options section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.android-options h3 { margin: 0 0 10px; }
.android-options .android-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 12px 20px; }
.admin .android-options label { display: grid; gap: 5px; }
.admin .android-options label:has(input[type=checkbox]) { display: flex; gap: 8px; align-items: center; }
.admin .android-options :is(input,textarea,select) { box-sizing: border-box; width: 100%; max-width: none; }
.admin .android-options input[type=checkbox] { width: 18px; height: 18px; }
.android-options textarea { resize: vertical; }
.android-options button[type=submit] { margin: 14px 0 4px; }

.global-options form.android-options { grid-template-columns: minmax(0,1fr); }

/* Publisher form inside Global Settings */
.admin .global-options form.android-options {
  display: block;
  padding: clamp(16px, 2.4vw, 28px);
}
.global-options .android-options > h2 { margin: 0; font-size: 20px; }
.global-options .android-options section { padding: 20px 0; }
.global-options .android-options h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.global-options .android-options .android-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.global-options .android-options .android-grid > div { min-width: 0; }
.global-options .android-options .android-grid > div:has(textarea):nth-child(3),
.global-options .android-options .android-grid > div:has(input[type=text]) { grid-column: 1 / -1; }
.admin .global-options .android-options label { gap: 6px; font-size: 13px; line-height: 1.4; }
.admin .global-options .android-options :is(input,textarea) {
  display: block;
  height: 40px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #d8d5e2;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}
.admin .global-options .android-options .android-grid > div:nth-child(3) textarea {
  height: 116px;
  font: 13px/19px ui-monospace, monospace;
  background: #faf9fc;
}
.global-options .android-options button[type=submit] { display: block; margin: 16px 0 0 auto; }
.global-options .android-options [role=status]:empty { display: none; }
@container (max-width: 620px) {
  .global-options .android-options .android-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Game Studio · Android profile */
.admin .sdk-panel .android-game-profile {
  --android-edge: #e4e1e8;
  --android-tint: #f4eff9;
  margin-block-start: 20px;
  text-align: left;
}
.android-game-profile .android-profile-heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-block-end: 16px;
}
.admin .android-game-profile .android-profile-heading h2 {
  margin: 0; font-size: clamp(18px, 2.3vw, 23px); line-height: 1.2; letter-spacing: -.035em;
}
.admin .sdk-panel .android-game-profile .android-save {
  width: auto; margin: 0; padding-inline: 16px; border-color: transparent;
  background: #59389c; color: white;
}
.admin .sdk-panel .android-game-profile .android-save:disabled { background: #efedf1; color: #78727f; opacity: 1; }
.admin .sdk-panel .android-game-profile .android-profile-shell {
  display: grid; grid-template-columns: minmax(140px, 19%) minmax(0, 1fr);
  align-items: stretch; margin: 0; padding: 0; border: 1px solid var(--android-edge);
  border-radius: 12px; background: #fff; overflow: hidden;
}
.android-profile-nav { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px 8px; border-inline-end: 1px solid var(--android-edge); background: #faf9fb; }
.admin .sdk-panel .android-game-profile .android-profile-nav button {
  width: 100%; height: auto; min-height: 38px; border: 0; border-radius: 7px;
  padding: 8px 12px; background: transparent; color: #595460; text-align: left;
}
.admin .sdk-panel .android-game-profile .android-profile-nav button[aria-current=page] { background: #ebe3f5; color: #452674; }
.android-profile-main { min-width: 0; padding: clamp(16px, 2.4vw, 28px); }
.admin .sdk-panel .android-profile-main > h3 { font-size: 17px; line-height: 1.35; margin: 0 0 16px; }
.android-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px 18px; }
.android-field { min-width: 0; }
.admin .sdk-panel .android-game-profile .android-field label {
  display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 6px;
  width: 100%; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.35; color: #4c4654;
}
.admin .sdk-panel .android-game-profile .android-field :is(input,textarea,select) {
  box-sizing: border-box; width: 100%; max-width: none; height: 39px; min-height: 39px;
  margin: 0; padding: 8px 11px; border: 1px solid #d7d3de; border-radius: 7px;
  background: #fff; color: #302c38; font-family: inherit; font-size: 14px; font-weight: 450; line-height: 20px;
}
.admin .sdk-panel .android-game-profile .android-field textarea { height: 96px; font-family: ui-monospace, monospace; }
.android-field:is(.android-field-icon,.android-field-googleServices,.android-field-products,.android-field-license,.android-field-eventsDebug,.android-field-eventsRelease) {grid-column: 1/-1;}
.android-field small {display:block; margin-block-start:4px; font-size:12px; color:#635d6a;}
.admin .sdk-panel .android-game-profile label.android-switch-row {
  display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 36px; margin: 0; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer;
}
.admin .sdk-panel .android-game-profile .android-switch-row input[type=checkbox] {
  appearance: none; flex: 0 0 32px; width: 32px; height: 19px; min-height: 0; border-radius: 20px;
  margin: 0; padding: 0; border: 1px solid #aaa4b3; cursor: pointer;
  background: radial-gradient(circle at 8px center,#fff 5.5px,transparent 6.5px),#b5afbe;
}
.admin .sdk-panel .android-game-profile .android-switch-row input:checked {
  border-color: #6e43a6; background: radial-gradient(circle at 22px center,#fff 5.5px,transparent 6.5px),#6e43a6;
}
.android-integrations { display: grid; gap: 16px; }
.android-service-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px 18px; padding-block-end:14px; border-block-end:1px solid var(--android-edge); }
.admin .sdk-panel .android-game-profile .android-service-controls > label:first-child { display:grid; flex:1 1 200px; width:auto; min-width:0; gap:6px; font-size:13px; }
.admin .sdk-panel .android-game-profile .android-service-controls .android-service-enable { flex:0 0 auto; width:auto; min-height:38px; gap:8px; }
.android-environment { display:grid; gap:14px; }
.android-mode-picker { display:inline-flex; width:fit-content; padding:3px; gap:2px; border-radius:8px; background:#f1eff3; }
.admin .sdk-panel .android-game-profile .android-mode-picker button { width:auto; height:30px; border:0; border-radius:6px; padding-inline:12px; background:transparent; color:#625a6b; }
.admin .sdk-panel .android-game-profile .android-mode-picker button[aria-pressed=true] { color:#482674; background:white; box-shadow:0 1px 4px #23133524; }
.android-check { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; column-gap:20px; row-gap:8px; margin-top:14px; font-size:13px; }
.admin .sdk-panel .android-game-profile .android-check label { display:flex; flex-direction:row; width:auto; align-items:center; gap:8px; font-size:13px; }
.admin .sdk-panel .android-game-profile .android-check select { width:auto; height:32px; }
.android-check details { min-width: 0; }
.android-check summary { cursor:pointer; color:#674386; }
.android-check ul { margin:8px 0; padding-inline-start:20px; }
.android-game-profile .android-feedback { margin-block-end:12px; }
@container (max-width: 700px) {
  .admin .sdk-panel .android-game-profile .android-profile-shell { grid-template-columns:minmax(0,1fr); }
  .android-profile-nav { flex-flow:row wrap; border-inline-end:0; border-bottom:1px solid var(--android-edge); padding:6px; }
  .admin .sdk-panel .android-game-profile .android-profile-nav button { flex:1 0 auto; width:auto; padding:6px 8px; min-height:34px; text-align:center; font-size:13px; }
}
@container (max-width: 480px) {
  .android-profile-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .android-profile-main { padding:14px; }
}

.android-game-profile .build-retention { margin:-6px 0 14px; color:#56515d; font-size:14px; }
.build-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin .android-game-profile .build-card { display:grid; grid-template-rows:auto 1fr auto; min-width:0; padding:0; border:1px solid #ddd8e2; border-radius:12px; overflow:hidden; background:white; }
.build-card header,.build-card .build-file,.build-card footer { padding:14px 18px; }
.admin .android-game-profile .build-card header h3 { margin:0 0 4px; font-size:18px; }
.build-card header p,.build-card small,.older-files small,.build-file > span,.build-card footer p { color:#615b67; font-size:13px; line-height:1.45; }
.build-card .build-file { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding-top:2px; }
.build-file code { overflow-wrap:anywhere; font:13px/1.4 ui-monospace,monospace; }
.admin .build-get { display:inline-flex; align-items:center; margin-top:6px; padding:9px 15px; border-radius:8px; background:#59389c; color:white; text-decoration:none; font-weight:700; }
.admin .build-get:hover { background:#472783; }
.build-card footer { background:#f8f7fa; border-top:1px solid #e6e1eb; }
.admin .sdk-panel .build-card .build-start { width:auto; background:white; color:#4c336e; border:1px solid #c9bdd8; }
.android-game-profile .build-card footer p { margin-top:7px; }
.android-game-profile .profile-settings-heading { margin:24px 0 12px; }
.android-game-profile .older-files > div { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:8px 0; }
.older-files small { display:block; }
@container(max-width:680px){.build-pair{grid-template-columns:minmax(0,1fr)}}
