/* Scoped additive styles: do not alter the existing phone controls. */
#tg-ipad-trial-entry[hidden] { display: none !important; }
.tg-ipad-entry {
  --ipad-ink: #183a31;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
  gap: 8px 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 20px 24px 16px;
  border: 1px solid rgba(24, 58, 49, .2);
  border-left: 4px solid #40745e;
  border-radius: 12px;
  background: #fffdf6;
  color: var(--ipad-ink);
}
.tg-ipad-entry-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tg-ipad-entry-heading h2 { margin: 0; font: 700 21px/1.3 "STSong", "Songti SC", serif; }
.tg-ipad-entry-label { padding: 3px 8px; border-radius: 5px; background: #e6eddf; color: #406247; font-size: 12px; white-space: nowrap; }
.tg-ipad-entry-description { margin: 7px 0 4px; font-size: 14px; line-height: 1.5; color: #52655b; }
.tg-ipad-entry-version { margin: 0; color: #64736b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tg-ipad-native-version { margin-top: 3px; }
.tg-ipad-entry-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tg-ipad-button { min-height: 42px; border: 1px solid #a9baac; border-radius: 8px; padding: 10px 13px; background: transparent; color: #244d3f; font: inherit; font-size: 14px; line-height: 1.3; cursor: pointer; }
.tg-ipad-button:hover:not(:disabled) { background: #e7eee2; }
.tg-ipad-button:focus-visible { outline: 3px solid #b58b34; outline-offset: 3px; }
.tg-ipad-button:disabled { opacity: .5; cursor: default; }
.tg-ipad-primary { background: #214d3f; border-color: #214d3f; color: #fffef2; font-weight: 700; }
.tg-ipad-primary:hover:not(:disabled) { background: #153e31; }
.tg-ipad-text { padding-inline: 5px; border-color: transparent; font-size: 12px; }
.tg-ipad-entry-note { margin: 0; grid-column: 1; font-size: 12px; color: #727b71; line-height: 1.4; }
.tg-ipad-entry-message { margin: 0; grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: #325d47; }
.tg-ipad-entry-message:empty { display: none; }
.tg-ipad-error { color: #9e4b2f; }
.tg-ipad-copy-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #bac9b9; border-radius: 14px; color: #183a31; background: #fffdf6; box-shadow: 0 24px 70px #142d2855; }
.tg-ipad-copy-dialog::backdrop { background: #183a3170; }
.tg-ipad-copy-dialog h2 { margin: 0 0 16px; font-size: 21px; }
.tg-ipad-copy-value { display: block; box-sizing: border-box; width: 100%; resize: vertical; min-height: 86px; padding: 12px; border: 1px solid #a9baac; border-radius: 8px; background: white; color: #183a31; font: 14px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.tg-ipad-copy-status { font-size: 13px; line-height: 1.5; color: #52655b; }
@media (max-width: 760px) {
  .tg-ipad-entry { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px 14px; }
  .tg-ipad-entry-actions { justify-content: flex-start; }
  .tg-ipad-entry-note { grid-row: 4; }
}
@media (max-width: 420px) {
  .tg-ipad-entry-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tg-ipad-entry-actions .tg-ipad-primary { grid-column: 1 / -1; }
  .tg-ipad-entry .tg-ipad-button { width: 100%; }
}
