/* Compact mobile presentation for the existing account and submission forms. */
@media (max-width: 900px) {
  #gkAccountModal {
    --gk-mobile-ink: #292820;
    --gk-mobile-muted: #655b4b;
    --gk-mobile-paper: #faf6ee;
    --gk-mobile-line: #d8ccbb;
    background: rgba(44, 39, 34, .48);
    padding: 10px;
  }

  #gkAccountModal .gk-account-window {
    box-sizing: border-box;
    width: min(100%, 540px);
    max-height: calc(100dvh - 20px);
    margin: auto;
    overflow: hidden auto;
    border: 1px solid var(--gk-mobile-line);
    border-radius: 18px;
    color: var(--gk-mobile-ink);
    background: var(--gk-mobile-paper);
    box-shadow: 0 20px 56px #201a194d, inset 0 1px #fff;
    backdrop-filter: none;
  }

  #gkAccountModal {
    & .gk-account-window::before { background: none; }
    & .gk-account-accent { display: none; }
    & .gk-account-inner { padding: 16px 14px; background: transparent; }
    & .gk-account-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 64px;
      margin-bottom: 10px;
      padding-inline: 42px;
    }
    & .gk-account-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: row;
      gap: 9px;
      text-align: start;
    }
    & .gk-account-logo-frame {
      flex: 0 0 53px;
      width: 53px;
      height: 42px;
      padding: 0;
      border: 1px solid #cdb78b;
      border-radius: 9px;
      background: #242421;
      box-shadow: none;
    }
    & .gk-account-logo { object-fit: contain; }
    & :is(.gk-account-brand-name, .gk-account-title) { color: var(--gk-mobile-ink); font-size: 16px; text-shadow: none; }
    & :is(.gk-account-subtitle, .gk-account-privacy, .gk-account-field-help, .gk-account-options, .gk-account-message) {
      color: var(--gk-mobile-muted);
    }
    & .gk-account-close {
      position: absolute;
      inset: 0 auto auto 0;
      width: 44px;
      height: 44px;
      border-color: transparent;
      background: transparent;
      color: var(--gk-mobile-ink);
      box-shadow: none;
    }
    & .gk-account-tabs {
      width: 100%;
      padding: 0;
      gap: 0;
      margin: 8px 0 14px;
      border-color: var(--gk-mobile-line);
      background: #efe9df;
      box-shadow: none;
    }
    & .gk-account-tab { min-height: 44px; color: var(--gk-mobile-muted); }
    & .gk-account-tab[aria-selected="true"] {
      color: #fffdf6;
      background: #33332c;
      box-shadow: inset 0 -3px #b99143;
    }
    & :is(.gk-account-form-grid, .gk-account-bottom-row, #gkAccountLoginForm .gk-account-form-grid) {
      grid-template-columns: minmax(0, 1fr);
      gap: 11px;
    }
    & .gk-account-field-label { color: var(--gk-mobile-ink); font-weight: 750; }
    & .gk-account-input-shell {
      min-height: 46px;
      border-color: #cfc5b9;
      color: #745c36;
      background: #fffdf8;
      box-shadow: none;
    }
    & .gk-account-input-shell:focus-within { border-color: #9b762c; box-shadow: 0 0 0 3px #ba934221; }
    & .gk-account-input { color: var(--gk-mobile-ink); font-size: 16px; }
    & .gk-account-input::placeholder { color: #796f62; opacity: 1; }
    & .gk-account-password-toggle { color: #72552b; background: transparent; }
    & .gk-account-checkbox { accent-color: #9a762b; }
    & :is(.gk-account-rules-link, .gk-account-text-action) { color: #795315; }
    & :is(.gk-account-submit, #gkAccountContinue) {
      min-height: 44px;
      border-color: #b28b39;
      color: #fffdf7;
      background: #30312b;
      box-shadow: inset 0 -2px #b99143;
    }
    & :is(.gk-account-secondary, .gk-account-refresh, .gk-account-logout) {
      min-height: 44px;
      border-color: #c3a874;
      color: #654a1c;
      background: #fffaf0;
      box-shadow: none;
    }
    & :is(.gk-account-user-row, .gk-account-stats article, .gk-account-recovery-manage,
          .gk-account-notifications-launch, .gk-account-ad-card, .gk-ad-auth-context) {
      border-color: var(--gk-mobile-line);
      background: #fffaf2;
      color: var(--gk-mobile-ink);
      box-shadow: none;
    }
    & .gk-account-profile { border: 0; background: transparent; box-shadow: none; }
    & .gk-account-avatar { color: #4d4639; background: #e5d9c5; }
    & :is(.gk-account-profile h3, .gk-account-stats strong, .gk-account-my-ads-head h3,
          .gk-account-recovery-manage strong, .gk-account-notifications-copy strong,
          .gk-account-ad-title) { color: var(--gk-mobile-ink); }
    & :is(.gk-account-profile p, .gk-account-stats span, .gk-account-my-ads-head p,
          .gk-account-recovery-manage p, .gk-account-notifications-copy small, .gk-account-ad-meta,
          .gk-account-ad-message, .gk-account-ads-empty) { color: var(--gk-mobile-muted); }
    & .gk-account-message[data-state="error"] { color: #a23137; }
    & .gk-account-message[data-state="success"] { color: #256843; }
    & :is(button, a, input):focus-visible { outline: 2px solid #97701e; outline-offset: 2px; }
    & [hidden] { display: none !important; }
  }

}

@media (max-width: 900px) {
  .gkmh-actions :is([data-gkmh-category], [data-gkmh-proxy="gkUserAccountOpen"]) {
    border-color: #b99652;
    font-weight: 750;
  }
  .gkmh-actions [data-gkmh-category="general"] {
    color: #392b1c;
    background: linear-gradient(145deg, #fff9ed, #e6d7ba);
  }
  .gkmh-actions [data-gkmh-category="general"] svg { color: #745127; stroke: currentColor; }

  #gkAccountModal :is(.gk-account-recovery-intro, .gk-account-recovery-card, #gkAccountRecoveryRotateForm) {
    background: #f5efe2;
    color: #352e21;
    border: 1px solid #d7c6a6;
    border-radius: 14px;
    padding: 14px;
    box-shadow: none;
  }
  #gkAccountModal :is(.gk-account-recovery-intro, .gk-account-recovery-card) :is(strong, h3, p) {
    color: #4e422c;
    text-shadow: none;
  }
  #gkAccountModal .gk-account-recovery-symbol { color: #745820; background: #eae0c9; box-shadow: none; }
  #gkAccountModal .gk-account-recovery-code {
    background: #fffaf0;
    border: 1px dashed #ad8c4b;
    border-radius: 10px;
    color: #3b321f;
    text-shadow: none;
    font-size: clamp(17px, 5vw, 25px);
    overflow-wrap: anywhere;
  }
  #gkAccountModal .gk-account-recovery-copy {
    min-height: 44px;
    border-color: #b89a5d;
    color: #654a1c;
    background: #fffaf0;
    box-shadow: none;
  }
  #gkAccountModal .gk-account-recovery-confirm { color: #574b35; background: transparent; }
  #gkAccountModal .gk-account-recovery-manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  #gkAccountModal .gk-account-recovery-manage-actions button { min-height: 44px; }
  #gkAccountModal .gk-account-ads-list { max-height: min(310px, 46dvh); overflow-y: auto; }
  #gkAccountModal .gk-account-title { overflow-wrap: anywhere; }

  .gk-public-register-page { padding: 10px; align-items: center; }
  .gk-newspaper-form {
    box-sizing: border-box;
    width: min(100%, 620px);
    height: auto;
    max-height: calc(100dvh - 20px);
    min-height: 0;
    margin-inline: auto;
    overflow: hidden auto;
    overscroll-behavior: contain;
    scrollbar-color: #a78960 #e7dcc7;
    border: 1px solid #ede1cc;
    border-radius: 18px;
    color: #3c3023;
    background: linear-gradient(135deg, #fff9eeeb, #efe6d4db);
    backdrop-filter: blur(12px) saturate(110%);
    box-shadow: 0 18px 44px #1c150c4d;
  }
  .gk-newspaper-form .gk-newspaper-header {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 11px 52px;
    background: linear-gradient(110deg, #faf4e8, #eee4d3);
    border-bottom: 1px solid #bba17b80;
  }
  .gk-newspaper-form .gk-newspaper-topline { display: flex; justify-content: center; padding: 0; min-height: 0; }
  .gk-newspaper-form .gk-newspaper-topline > span { display: none; }
  .gk-newspaper-form .gk-newspaper-topline strong { color: #76654b; }
  .gk-newspaper-form .gk-newspaper-title h1 { font-size: clamp(17px, 4.4vw, 22px); color: #352819; }
  .gk-newspaper-form .gk-form-close {
    inset: 8px auto auto 7px;
    width: 44px;
    height: 44px;
    border: 1px solid #b49a74;
    border-radius: 9px;
    background: #fff8e9;
    color: #6b4d2c;
  }
  .gk-newspaper-form .gk-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "image" "fields" "actions";
    gap: 12px;
    padding: 12px;
  }
  .gk-newspaper-form .gk-form-sidebar {
    grid-area: image;
    display: block;
    padding: 10px;
    border: 1px solid #c5b18d80;
    border-radius: 12px;
    background: #fff8e98c;
  }
  .gk-newspaper-form :is(.gk-sidebar-intro, .gk-sidebar-brand, .gk-sidebar-city) { display: none; }
  .gk-newspaper-form .gk-image-upload { padding: 0; border: 0; background: none; }
  .gk-newspaper-form .gk-image-preview {
    width: min(100%, 240px);
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin-inline: auto;
    border: 1px dashed #ac8c5d;
    border-radius: 9px;
    background: #fff9ee;
  }
  .gk-newspaper-form #gkAdImagePreview { object-fit: contain; }
  .gk-newspaper-form .gk-form-fields { grid-area: fields; padding: 0; border: 0; background: none; }
  .gk-newspaper-form .gk-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .gk-newspaper-form :is(.gk-field-group > label, .gk-image-upload h2, .gk-features-section legend) { color: #463421; }
  .gk-newspaper-form :is(.gk-field-group input, .gk-field-group textarea, .gk-feature-row input) {
    min-height: 44px;
    color: #3c3020;
    background: #fffdf6;
    border: 1px solid #baa583;
    font-size: 16px;
  }
  .gk-newspaper-form .gk-form-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid #b8a17d66;
    gap: 8px;
  }
  .gk-newspaper-form .gk-form-actions > * { grid-area: auto; min-width: 0; }
  .gk-newspaper-form .gk-publication-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gk-newspaper-form :is(.gk-ad-rules-notice, .gk-ad-auth-banner[data-state]) { background: #f8efde; border-color: #c5ae85; }
  .gk-newspaper-form .gk-ad-auth-banner :is(strong, small) { color: #604927; }
  .gk-newspaper-form :is(.gk-image-select, .gk-add-feature, .gk-form-cancel, .gk-publication-open, .gk-ad-auth-banner > button) {
    min-height: 44px;
    border-color: #a9895d;
    color: #67451f;
    background: #fff7e7;
  }
  .gk-newspaper-form .gk-submit-ad {
    min-height: 44px;
    color: #fff8eb;
    border-color: #8f6837;
    background: linear-gradient(130deg, #967044, #74502b);
  }
  .gk-newspaper-form .gk-publication-open.is-accepted { color: #4e6135; border-color: #8d9a68; background: #f3f4e2; }

  .gk-featured-page { padding: 10px; }
  body .gk-featured-window {
    width: min(100%, 680px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
    border-radius: 18px;
    border-color: #a5874d;
    background: linear-gradient(135deg, #181915dd, #0a0d0bd9);
    backdrop-filter: blur(12px) saturate(110%);
    scrollbar-color: #ae9056 #1b1b15;
    box-shadow: 0 18px 44px #0b0a08a6;
  }
  body .gk-featured-window :is(.gk-featured-gallery, .gk-featured-details, .gk-featured-plans,
      .gk-featured-benefits, .gk-featured-summary, .gk-featured-cost-box, .gk-ad-auth-banner[data-state]) {
    border-color: #a5874d80;
    border-radius: 12px;
    background: linear-gradient(135deg, #28291fe6, #151910da);
  }
  body .gk-featured-window .gk-featured-header { background: linear-gradient(120deg, #28291f, #131710); }
  .gk-featured-window .gk-featured-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "details" "payment";
    padding: 12px;
    gap: 12px;
  }
  .gk-featured-window :is(.gk-featured-fields-grid, .gk-featured-payment) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .gk-featured-window .gk-featured-main-preview { aspect-ratio: 16 / 9; }
  .gk-featured-window :is(.gk-featured-field input, .gk-featured-field textarea) {
    min-height: 44px;
    font-size: 16px;
    border-color: #9e85538c;
    background: #161810;
  }
  .gk-featured-window :is(.gk-featured-image-button, .gk-featured-cancel, .gk-plan-card, button[type="submit"]) { min-height: 44px; }

  #gkVipStoreModal .gkv-ad {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
  }
  #gkVipStoreModal .gkv-ad > :is(h3, .gkv-ad-location, .gkv-ad-price) { display: none; }
  #gkVipStoreModal .gkv-ad > :is(.gkv-ad-photo, .gkv-no-photo) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  #gkVipStoreModal .gkv-ad-photo img { width: 100%; height: 100%; object-fit: cover; }
  #gkVipStoreModal .gkv-detail {
    padding: 10px;
    background: #100d18a3;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  #gkVipStoreModal .gkv-photo-only {
    box-sizing: border-box;
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 15px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: #1a1722a6;
  }
  #gkVipStoreModal .gkv-photo-only > .gkv-detail-gallery {
    box-sizing: border-box;
    display: flex;
    direction: ltr;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: auto hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: transparent;
  }
  #gkVipStoreModal .gkv-detail-gallery::-webkit-scrollbar { display: none; }
  #gkVipStoreModal .gkv-detail-gallery > :is(.gkv-detail-photo, .gkv-detail-empty) {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 10px;
    scroll-snap-align: start;
    border: 0;
    background: transparent;
    object-fit: contain;
  }
  #gkVipStoreModal .gkv-detail-photo img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .gk-mobile-store-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    direction: ltr;
  }
  .gk-mobile-store-dots button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .gk-mobile-store-dots button::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 1px solid #fff6d7a8;
    border-radius: 50%;
    background: #ffffff39;
  }
  .gk-mobile-store-dots button[aria-current="true"]::before {
    background: #ffe197;
    box-shadow: 0 0 10px #ffdb8090;
  }
}
@media (min-width: 901px) {
  .gk-mobile-store-dots { display: none; }
}
