/* The intake shell retains the Believe account. The work area follows the award entry form. */
body:has(.gma-entry) {
  background: #181818;
}
#app:has(.gma-entry) .topbar {
  height: 101px;
  border-bottom: 1px solid #b19b69;
  color: white;
  background:
    radial-gradient(ellipse at 88% 145%, #512421 0, transparent 48%),
    linear-gradient(112deg, #160d0a, #381613 54%, #171115);
}
#app:has(.gma-entry) .topbar-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 8px 27px 10px 20px;
  align-items: flex-end;
}
#app:has(.gma-entry) .product-brand {
  align-self: center;
  gap: 18px;
}
#app:has(.gma-entry) .brand img {
  width: 142px;
  filter: invert(1);
}
#app:has(.gma-entry) .product-name {
  color: #f2d988;
  border-color: #a28a62;
  font-size: 25px;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.gma-account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gma-quick-logout {
  display: none;
}
#app:has(.gma-entry) .gma-quick-logout {
  display: inline;
  padding: 0 2px 0 10px;
  border: 0;
  border-left: 1px solid white;
  background: transparent;
  color: #e8d59e;
  font-size: 15px;
}
#app:has(.gma-entry) .account-avatar {
  display: none;
}
#app:has(.gma-entry) .account-menu summary {
  font-size: 13px;
}
.workspace:has(.gma-entry) {
  width: 100%;
  max-width: none;
  padding: 0 0 45px;
  margin: 0;
}
.gma-entry,
.gma-dialog {
  color: #161616;
  font:
    400 14px/1.45 "微軟正黑體",
    "Microsoft JhengHei",
    Arial,
    sans-serif;
}
.gma-menu {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 6px;
  color: #fff;
}
.gma-award-choice {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.gma-home-link {
  padding: 6px 10px;
  border-inline-start: 1px solid #766e60;
  color: #f2d988;
  text-decoration: none;
  white-space: nowrap;
}
.gma-home-link:hover {
  text-decoration: underline;
}
.gma-menu details {
  position: relative;
}
.gma-menu summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 650;
}
.gma-menu summary::-webkit-details-marker {
  display: none;
}
.gma-menu summary span {
  display: inline-grid;
  place-content: center;
  height: 16px;
  width: 16px;
  margin-inline-start: 5px;
  border-radius: 50%;
  background: #fff;
  color: #343434;
  font: bold 16px/1 Arial;
}
.gma-menu details[open] summary span {
  transform: rotate(180deg);
}
.gma-menu details > div {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3;
  min-width: 185px;
  padding: 4px;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 4px 12px #0003;
}
.gma-menu details a {
  display: block;
  text-align: left;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: #332718;
  text-decoration: none;
}
.gma-menu details a:hover {
  background: #f0ede6;
}
.gma-frame {
  margin: 0 1%;
  padding: 20px;
  border-radius: 8px;
  background: #bfad80;
  box-shadow: inset 0 0 14px #705e3f45;
}
.gma-paper {
  padding: 13px 10px 23px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px #4b3e2770;
}
.gma-note {
  display: inline-block;
  padding: 6px 9px;
  min-height: 34px;
  border-radius: 4px;
  background: #39517e;
  color: #fff;
  box-shadow: inset 0 0 6px #233254;
  font-size: 14px;
  font-weight: 600;
}
.gma-note span {
  margin-right: 2px;
}
.gma-paper > h1 {
  margin: 0;
  padding: 10px 0 8px;
  border-bottom: 1px solid #ddd;
  color: #ac1b0e;
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.gma-category {
  margin: 19px 0 8px;
  color: #41351f;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.gma-entry .gma-step {
  display: block;
  margin: 0 0 29px;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 5px;
  box-shadow: inset 0 0 9px #63533699;
  color: #fff;
  background: #8a7952;
  font:
    700 16px/22px "Microsoft JhengHei",
    Arial,
    sans-serif;
}
.gma-entry .required-marker,
.gma-dialog .required-marker {
  color: #bd260b;
}
.gma-entry .field-tooltip {
  text-align: left;
  z-index: 9;
  width: min(240px, calc(100vw - 16px));
  border: 1px solid #d7a19b;
  border-radius: 4px;
  background: #fff6f4;
  color: #861b1b;
  box-shadow: 0 4px 12px rgb(88 22 19 / 18%);
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.gma-form-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 28px;
}
.gma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #78964e;
  background: #76944d;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gma-button:hover:not(:disabled),
.gma-button:focus-visible {
  background: #627d3e;
}
.gma-button.plain {
  color: #4c6135;
  background: #fff;
}
.gma-button.plain:hover {
  background: #eff2e9;
}
.gma-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.gma-button.to-awards {
  margin-left: 23px;
}
.gma-file-chooser {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
  font: 14px/1.4 Arial, "Microsoft JhengHei", sans-serif;
}
.gma-file-chooser input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.gma-file-trigger {
  flex: none;
  padding: 1px 7px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #f0f0f0;
}
.gma-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gma-file-chooser input:focus-visible + .gma-file-trigger {
  outline: 2px solid #416aac;
  outline-offset: 1px;
}
.gma-file-chooser input[aria-invalid="true"] + .gma-file-trigger {
  outline: 2px solid #b22c1d;
  outline-offset: 1px;
}
.gma-file-chooser input:disabled ~ span {
  opacity: 0.6;
}
.gma-supplement-row .gma-file-chooser {
  display: flex;
  width: fit-content;
  margin-block: 4px;
}
.gma-entry [aria-invalid="true"] {
  outline: 2px solid #b22c1d;
  outline-offset: 1px;
}
.gma-files {
  margin: 7px 0 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.gma-files button,
.gma-load-link {
  border: none;
  background: transparent;
  color: #236ba7;
  padding: 2px 4px;
}
.gma-supplement {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #ddd;
}
.gma-supplement h2 {
  border-bottom: 1px solid #ddd;
  color: #78511d;
  padding-bottom: 8px;
}
.gma-supplement fieldset {
  margin: 10px 0;
}
.gma-supplement .choice-row {
  margin: 6px 0;
}
.gma-entry #awards .award-list {
  display: block;
  border: 1px solid #dedede;
}
.gma-entry #awards .award-item {
  padding: 6px 10px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.gma-entry #awards .award-item:nth-child(even) {
  background: #f6f6f6;
}
.gma-entry #awards .award-fields {
  padding: 8px 20px;
}
.gma-dialog {
  padding: 0;
  border: 0;
  border-radius: 5px 5px 0 0;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  background: #fff;
  box-shadow: 0 8px 25px #0005;
}
.gma-dialog::backdrop {
  background: rgb(0 0 0 / 80%);
}
.gma-dialog > header {
  position: relative;
  padding: 24px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: inset 0 0 16px #705326;
  background: linear-gradient(100deg, #57431e, #a28a4c);
}
.gma-dialog h2 {
  font-size: 20px;
  line-height: 28px;
  color: #fff;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
}
.gma-close {
  min-width: 40px;
  height: 36px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: white;
  font: 25px/1 Arial;
  border-radius: 4px;
}
.gma-close:hover {
  background: #ffffff24;
}
.gma-dialog-body {
  padding: 24px;
}
.gma-dialog footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.gma-reminder,
.gma-category-picker,
.gma-confirm-load {
  width: 480px;
}
.gma-reminder > header {
  min-height: 76px;
}
.gma-reminder .gma-dialog-body {
  padding: 24px 44px 52px;
}
.gma-reminder p,
.gma-confirm-load p {
  color: #861b1b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.gma-category-picker .gma-dialog-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gma-catalog {
  width: calc(100vw - 48px);
}
.gma-catalog .gma-dialog-body {
  padding: 0 24px 28px;
}
.gma-catalog-scroll {
  overflow-x: auto;
}
.gma-catalog table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 600px;
  font-size: 14px;
}
.gma-catalog th {
  background: #574d37;
  color: white;
  font-weight: 700;
  height: 42px;
}
.gma-catalog td {
  text-align: center;
  border-bottom: 1px solid #eee;
  height: 37px;
  padding: 4px;
}
.gma-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 80px;
  color: #50565a;
}
.gma-pages span {
  padding: 0 15px;
}
.gma-pages button {
  padding: 4px;
  min-width: 28px;
  height: 28px;
  color: #485052;
  border: 0;
  border-radius: 3px;
  background: #fff;
}
.gma-pages button:disabled {
  color: #999;
}
.gma-pages [aria-current="page"] {
  background: #e4eff7;
}
.gma-pages select {
  display: inline-block;
  appearance: auto;
  width: auto;
  min-height: 26px;
  height: 28px;
  padding: 0;
  background: #fff;
}
.gma-dialog-message {
  border-top: 1px solid #ddd;
  min-height: 24px;
  margin: 0;
}
.gma-cover-dialog {
  width: 800px;
}
.gma-cover-dialog .gma-dialog-body {
  padding: 3px 24px 32px;
}
.gma-upload-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
}
.gma-upload-tools .gma-button {
  min-width: 0;
  height: 51px;
  padding: 8px 18px;
}
.gma-file-choice {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gma-file-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.gma-file-choice:focus-within {
  outline: 2px solid #3e6793;
}
.gma-file-queue {
  min-height: 54px;
  padding: 12px;
  border: 1px solid #ddd;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
@media (max-width: 720px) {
  #app:has(.gma-entry) .topbar {
    height: 65px;
  }
  #app:has(.gma-entry) .product-brand {
    gap: 8px;
  }
  #app:has(.gma-entry) .brand img {
    width: 94px;
  }
  #app:has(.gma-entry) .product-name {
    display: inline;
    font-size: 16px;
    padding-left: 8px;
  }
  #app:has(.gma-entry) .topbar-inner {
    padding: 6px 12px;
    min-height: 0;
  }
  #app:has(.gma-entry) .account-menu summary span:last-child {
    max-width: 5rem;
  }
  .gma-frame {
    margin: 0;
    padding: 10px;
  }
  .gma-form-actions {
    gap: 7px;
  }
  .gma-form-actions .gma-button {
    flex: 1 0 auto;
    min-width: 88px;
    padding-inline: 8px;
  }
  .gma-button.to-awards {
    margin-left: 0;
  }
  .gma-catalog {
    width: calc(100vw - 16px);
  }
  .gma-dialog-body,
  .gma-catalog .gma-dialog-body,
  .gma-cover-dialog .gma-dialog-body {
    padding-inline: 12px;
  }
  .gma-reminder .gma-dialog-body {
    padding: 20px 24px 32px;
  }
  .gma-upload-tools {
    padding: 8px;
    gap: 4px;
  }
  .gma-upload-tools .gma-button {
    padding: 6px;
  }
}

.gma-entry :focus-visible,
.gma-dialog :focus-visible,
.gma-song-dialog :focus-visible {
  outline: 2px solid #416aac;
  outline-offset: 1px;
}
.gma-entry .gma-date-wrap button,
.gma-song-date button {
  position: relative;
  display: grid;
  place-content: center;
  font-size: 0;
  border-radius: 3px;
}
.gma-entry .gma-date-wrap button::before,
.gma-song-date button::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  border: 1.5px solid #fff;
  border-top-width: 4px;
  border-radius: 2px;
}
.gma-entry .gma-date-wrap button::after,
.gma-song-date button::after {
  content: "";
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 3.5px);
  width: 7px;
  height: 4px;
  border-inline: 1.5px solid #fff;
}
@media (max-width: 720px) {
  #app:has(.gma-entry) .topbar {
    height: 101px;
  }
  #app:has(.gma-entry) .topbar-inner {
    position: relative;
  }
  #app:has(.gma-entry) .gma-account-actions {
    position: absolute;
    right: 12px;
    bottom: 6px;
    z-index: 3;
  }
}
@media (min-width: 901px) {
  .gma-category {
    margin-bottom: 9px;
  }
}

/* Customer entry guidance stays visually distinct from fields and validation. */
.gma-entry .gma-note,
.gma-entry .gma-song-people {
  border: 1px solid #d7a19b;
  background: #fff3f1;
  color: #861b1b;
  box-shadow: none;
}

.gma-entry .gma-song-step p {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #d7a19b;
  border-radius: 3px;
  background: #fff3f1;
  color: #861b1b;
  font-style: normal;
}

.gma-entry .field-hint,
.gma-entry .gma-instruction,
.gma-entry .award-toggle small,
.gma-entry .gma-language-note,
.gma-entry .gma-disabled-note,
.gma-entry .gma-credit-line small,
.gma-entry .gma-cover-label p,
.gma-entry #traditional-metadata-fields p,
.gma-entry .gma-proof-intro,
.gma-entry .gma-proof-not-needed p,
.gma-song-dialog .gma-song-modal-note,
.submit-dialog > form > p {
  color: #861b1b;
}

.gma-entry .field-help-button {
  border-color: #c98780;
  background: #fff6f4;
  color: #861b1b;
}

.gma-entry .field-help-button:hover,
.gma-entry .field-help-button:focus-visible {
  border-color: #861b1b;
  background: #ffe9e5;
  color: #6f1414;
}
