/* AMOON Files 1.4.3: fixed tool board, compact mobile controls and header sign-up CTA. */
.aft-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
  align-items: stretch;
}

.aft-tabs button {
  min-width: 0;
  padding: 8px 6px;
  line-height: 1.15;
  white-space: normal;
}

.aft-signup-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(232, 198, 103, .34);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aft-accent), var(--aft-accent2));
  color: var(--aft-button-text) !important;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(177, 123, 36, .18);
}

.aft-signup-cta span {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 720px) {
  .aft-hero {
    padding: 16px 14px;
  }

  .aft-brand {
    gap: 10px;
  }

  .aft-brand h1 {
    font-size: 28px;
  }

  .aft-hero > p {
    margin: 14px 0 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .aft-tabs {
    position: static;
    top: auto;
    z-index: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 10px 0;
    padding: 5px;
    overflow: visible;
  }

  .aft-tabs button {
    flex: none;
    flex-direction: column;
    min-width: 0;
    min-height: 48px;
    padding: 5px 3px;
    gap: 2px;
    font-size: 9px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .aft-tabs button span {
    font-size: 17px;
    line-height: 1;
  }

  .aft-panel {
    padding: 16px 10px;
  }

  .aft-panel-head {
    gap: 10px;
  }

  .aft-panel-head h2 {
    font-size: 27px;
  }

  .aft-panel-head p {
    font-size: 12px;
    line-height: 1.45;
  }

  .aft-step {
    font-size: 32px;
  }

  .aft-drop {
    min-height: 174px;
    margin-top: 14px;
    padding: 14px;
  }

  .aft-drop-icon {
    min-width: 48px;
    height: 48px;
    margin-bottom: 9px;
    border-radius: 14px;
    font-size: 21px;
  }

  .aft-drop strong {
    font-size: 16px;
  }

  .aft-drop small {
    margin: 5px 0 12px;
    font-size: 10px;
  }

  .aft-drop b {
    padding: 9px 13px;
    font-size: 10px;
  }

  #aft-merge .aft-options.aft-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  #aft-merge .aft-options label {
    min-width: 0;
  }

  #aft-merge .aft-options label > span {
    overflow: hidden;
    margin: 0 0 4px 2px;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #aft-merge .aft-options select,
  #aft-merge .aft-options input {
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.1;
  }

  #aft-merge .aft-help {
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.4;
  }

  .aft-signup-cta {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .aft-hero-row {
    width: 100%;
    gap: 8px;
  }

  .aft-privacy,
  .aft-signup-cta,
  .afa-counter {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
  }
}

/* Compact Universe + AI + Search + Chat dock. */
body.amoon-file-tools-app #amoon-floating-guide,
body.amoon-file-tools-app .amoon-lc { display:none!important; }

body.amoon-file-tools-app #aft-universe-button,
body.amoon-file-tools-app #amoon-floating-ai,
body.amoon-file-tools-app #amoon-floating-messages,
body.amoon-file-tools-app #amoon-global-search {
  position:fixed!important;
  top:auto!important;
  bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
  width:46px!important;
  height:46px!important;
  margin:0!important;
  border-radius:14px!important;
  transform:none!important;
  animation:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  z-index:2147483600!important;
}

body.amoon-file-tools-app #aft-universe-button { left:calc(50% - 104px)!important;right:auto!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#65152f,#310918)!important;color:#ffe49a!important;border:1px solid rgba(255,225,145,.44)!important;text-decoration:none!important;box-shadow:0 8px 0 rgba(68,15,31,.72),0 16px 28px rgba(0,0,0,.35)!important; }
body.amoon-file-tools-app #aft-universe-button span { font-size:20px!important;line-height:1!important; }
body.amoon-file-tools-app #aft-universe-button b { margin-top:-7px!important;color:#ffe49a!important;font-size:7px!important;line-height:1!important;letter-spacing:.5px!important; }
body.amoon-file-tools-app #amoon-floating-ai { left:calc(50% - 50px)!important;right:auto!important; }
body.amoon-file-tools-app #amoon-global-search { left:calc(50% + 4px)!important;right:auto!important;transform:none!important; }
body.amoon-file-tools-app #amoon-floating-messages { left:calc(50% + 58px)!important;right:auto!important;display:grid!important; }
body.amoon-file-tools-app #amoon-floating-messages .afm-sound { display:none!important; }

body.amoon-file-tools-app #amoon-global-search .ags-shell {
  width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;
  display:grid!important;place-items:center!important;border-radius:14px!important;
  border:1px solid rgba(255,225,145,.34)!important;background:linear-gradient(145deg,#111923,#070c12)!important;
  box-shadow:0 8px 0 rgba(68,48,16,.65),0 16px 28px rgba(0,0,0,.35)!important;cursor:pointer!important;
}
body.amoon-file-tools-app #amoon-global-search .ags-mag { display:block!important;font-size:23px!important;color:#ffe49a!important;line-height:1!important; }
body.amoon-file-tools-app #amoon-global-search :is(#ags-input,.ags-key) { display:none!important; }
body.amoon-file-tools-app #amoon-global-search .ags-results { display:none!important; }

body.amoon-file-tools-app.aft-search-open #amoon-global-search {
  left:50%!important;width:min(560px,calc(100vw - 24px))!important;height:50px!important;
  transform:translateX(-50%)!important;bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;
}
body.amoon-file-tools-app.aft-search-open #amoon-global-search .ags-shell {
  width:100%!important;height:50px!important;display:flex!important;padding:0 14px!important;cursor:text!important;
}
body.amoon-file-tools-app.aft-search-open #amoon-global-search #ags-input { display:block!important;flex:1!important;min-width:0!important;color:#f7f8fa!important; }
body.amoon-file-tools-app.aft-search-open #amoon-global-search .ags-key { display:block!important; }
body.amoon-file-tools-app.aft-search-open #amoon-global-search .ags-results:not([hidden]) { display:block!important; }

/* Six equal service shortcuts: centred icon above a short, small label. */
body.amoon-file-tools-app .aft-tabs { align-items:stretch!important; }
body.amoon-file-tools-app .aft-tabs button {
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;min-width:0!important;min-height:78px!important;padding:8px 5px!important;
  color:var(--aft-muted)!important;font-size:11px!important;line-height:1.16!important;text-align:center!important;
}
body.amoon-file-tools-app .aft-tabs button span {
  display:grid!important;place-items:center!important;width:32px!important;height:32px!important;
  border-radius:10px!important;background:rgba(255,255,255,.045)!important;font-size:21px!important;line-height:1!important;
}
body.amoon-file-tools-app .aft-tabs button:nth-child(1) span{color:#f4c95d!important;background:rgba(244,201,93,.12)!important}
body.amoon-file-tools-app .aft-tabs button:nth-child(2) span{color:#d99aff!important;background:rgba(217,154,255,.12)!important}
body.amoon-file-tools-app .aft-tabs button:nth-child(3) span{color:#62d8ff!important;background:rgba(98,216,255,.12)!important}
body.amoon-file-tools-app .aft-tabs button:nth-child(4) span{color:#74e0a6!important;background:rgba(116,224,166,.12)!important}
body.amoon-file-tools-app .aft-tabs button:nth-child(5) span{color:#ff8b9d!important;background:rgba(255,139,157,.12)!important}
body.amoon-file-tools-app .aft-tabs button:nth-child(6) span{color:#ffae66!important;background:rgba(255,174,102,.12)!important}
body.amoon-file-tools-app .aft-tabs button.active { border-color:rgba(232,198,103,.30)!important; }

/* Larger, colour-coded tool icons for fast visual scanning. */
body.amoon-file-tools-app .aft-tool-card {
  --aft-tool-color: #e8c667;
  --aft-tool-bg: rgba(232, 198, 103, .13);
  --aft-tool-line: rgba(232, 198, 103, .32);
}

body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 1) { --aft-tool-color:#f4c95d; --aft-tool-bg:rgba(244,201,93,.14); --aft-tool-line:rgba(244,201,93,.36); }
body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 2) { --aft-tool-color:#62d8ff; --aft-tool-bg:rgba(98,216,255,.14); --aft-tool-line:rgba(98,216,255,.34); }
body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 3) { --aft-tool-color:#74e0a6; --aft-tool-bg:rgba(116,224,166,.14); --aft-tool-line:rgba(116,224,166,.34); }
body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 4) { --aft-tool-color:#d99aff; --aft-tool-bg:rgba(217,154,255,.14); --aft-tool-line:rgba(217,154,255,.34); }
body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 5) { --aft-tool-color:#ff8b9d; --aft-tool-bg:rgba(255,139,157,.14); --aft-tool-line:rgba(255,139,157,.34); }
body.amoon-file-tools-app .aft-tool-card:nth-child(6n + 6) { --aft-tool-color:#ffae66; --aft-tool-bg:rgba(255,174,102,.14); --aft-tool-line:rgba(255,174,102,.34); }

body.amoon-file-tools-app .aft-tool-card > i {
  width: 68px !important;
  height: 68px !important;
  margin-bottom: 18px !important;
  border-color: var(--aft-tool-line) !important;
  border-radius: 19px !important;
  background: var(--aft-tool-bg) !important;
  color: var(--aft-tool-color) !important;
  font-size: 23px !important;
  line-height: 1 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 24px color-mix(in srgb, var(--aft-tool-color) 14%, transparent);
}

body.amoon-file-tools-app .aft-tool-card > b { color: var(--aft-tool-color) !important; }
body.amoon-file-tools-app .aft-tool-card:hover { border-color: var(--aft-tool-line) !important; }

@media (max-width: 720px) {
  body.amoon-file-tools-app .aft-tool-card > i {
    width: 60px !important;
    height: 60px !important;
    border-radius: 17px !important;
    font-size: 20px !important;
  }
  body.amoon-file-tools-app .aft-tabs button { min-height:66px!important;padding:6px 3px!important;font-size:9px!important; }
  body.amoon-file-tools-app .aft-tabs button span { width:27px!important;height:27px!important;font-size:17px!important; }
}

/* Keep the introduction, services and the first working panel close together. */
@media (max-width: 900px) {
  html:not(.agn-tablet-rail):not(.agn-vertical-nav) body.amoon-file-tools-app .aft-page { padding-top:108px!important; }
  body.amoon-file-tools-app .aft-hero { padding:14px!important;border-radius:19px!important; }
  body.amoon-file-tools-app .aft-brand { gap:10px!important; }
  body.amoon-file-tools-app .aft-brand img { width:46px!important;height:46px!important;border-radius:13px!important; }
  body.amoon-file-tools-app .aft-brand h1 { margin-top:3px!important;font-size:clamp(24px,5vw,31px)!important; }
  body.amoon-file-tools-app .aft-brand small { font-size:8px!important; }
  body.amoon-file-tools-app .aft-hero>p { margin:10px 0 8px!important;font-size:12px!important;line-height:1.4!important; }
  body.amoon-file-tools-app .aft-privacy { padding:7px 10px!important;font-size:9px!important; }
  body.amoon-file-tools-app .aft-tabs { margin:10px 0!important;padding:5px!important;gap:5px!important; }
  body.amoon-file-tools-app .aft-panel { padding:19px 14px!important; }
  body.amoon-file-tools-app .aft-panel-head h2 { font-size:clamp(27px,5vw,34px)!important; }
  body.amoon-file-tools-app .aft-panel-head p { font-size:12px!important; }
}

/* 1.4.6: one-screen working layout and explicit native device chooser. */
body.amoon-file-tools-app .aft-page {
  padding-top:20px!important;
  padding-bottom:92px!important;
}
body.amoon-file-tools-app .aft-hero {
  padding:18px 22px!important;
  border-radius:21px!important;
}
body.amoon-file-tools-app .aft-brand { gap:12px!important; }
body.amoon-file-tools-app .aft-brand img {
  width:52px!important;height:52px!important;border-radius:14px!important;
}
body.amoon-file-tools-app .aft-brand h1 {
  margin-top:3px!important;font-size:clamp(30px,3vw,42px)!important;
}
body.amoon-file-tools-app .aft-brand small { font-size:9px!important; }
body.amoon-file-tools-app .aft-hero>p {
  margin:11px 0 9px!important;font-size:14px!important;line-height:1.4!important;
}
body.amoon-file-tools-app .aft-tabs {
  gap:5px!important;margin:9px 0!important;padding:5px!important;
}
body.amoon-file-tools-app .aft-tabs button {
  min-height:60px!important;padding:5px 4px!important;gap:3px!important;font-size:10px!important;
}
body.amoon-file-tools-app .aft-tabs button span {
  width:27px!important;height:27px!important;font-size:17px!important;
}
body.amoon-file-tools-app .aft-panel {
  padding:17px 20px!important;border-radius:21px!important;
}
body.amoon-file-tools-app .aft-panel-head { gap:12px!important; }
body.amoon-file-tools-app .aft-panel-head h2 {
  margin:4px 0 5px!important;font-size:clamp(25px,3vw,34px)!important;
}
body.amoon-file-tools-app .aft-panel-head p { font-size:12px!important;line-height:1.35!important; }
body.amoon-file-tools-app .aft-step { font-size:38px!important; }
body.amoon-file-tools-app .aft-drop {
  min-height:150px!important;margin-top:12px!important;padding:12px 16px!important;border-radius:17px!important;
}
body.amoon-file-tools-app .aft-drop-icon {
  min-width:42px!important;height:42px!important;margin-bottom:6px!important;border-radius:12px!important;font-size:18px!important;
}
body.amoon-file-tools-app .aft-drop strong { font-size:16px!important; }
body.amoon-file-tools-app .aft-drop small { margin:4px 0 8px!important;font-size:10px!important; }
body.amoon-file-tools-app .aft-drop>[data-aft-native-choose] {
  padding:8px 13px!important;font-size:10px!important;cursor:pointer!important;
}
body.amoon-file-tools-app .aft-drop>.amoon-file-choice {
  gap:7px!important;margin-bottom:7px!important;
}
body.amoon-file-tools-app .aft-drop>.amoon-file-choice>button {
  min-height:45px!important;padding:6px 10px!important;
}
body.amoon-file-tools-app .aft-drop>.amoon-file-choice b {
  padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:11px!important;
}
body.amoon-file-tools-app .aft-drop>.amoon-file-choice span { margin-top:2px!important;font-size:9px!important; }
body.amoon-file-tools-app .aft-list-head { margin:10px 2px 6px!important; }
body.amoon-file-tools-app .aft-file-list {
  gap:5px!important;max-height:116px!important;overflow-y:auto!important;scrollbar-width:thin!important;
}
body.amoon-file-tools-app .aft-file {
  grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px!important;padding:6px 8px!important;border-radius:10px!important;
}
body.amoon-file-tools-app .aft-file-icon { width:34px!important;height:34px!important;border-radius:9px!important; }
body.amoon-file-tools-app .aft-file-copy strong { font-size:12px!important; }
body.amoon-file-tools-app .aft-file-copy small { margin-top:2px!important;font-size:9px!important; }
body.amoon-file-tools-app .aft-file-actions button { width:30px!important;height:30px!important;border-radius:8px!important; }
body.amoon-file-tools-app #aft-merge .aft-options.aft-grid-3 {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px 9px!important;margin-top:11px!important;
}
body.amoon-file-tools-app #aft-merge .aft-options label>span {
  margin-bottom:3px!important;font-size:9px!important;
}
body.amoon-file-tools-app #aft-merge .aft-options :is(select,input) {
  min-height:38px!important;height:38px!important;padding:6px 9px!important;border-radius:9px!important;font-size:11px!important;
}
body.amoon-file-tools-app #aft-merge .aft-help { margin:7px 2px 0!important;font-size:9px!important;line-height:1.35!important; }
body.amoon-file-tools-app #aft-merge .aft-action-row { margin-top:9px!important;padding-top:9px!important; }
body.amoon-file-tools-app #aft-merge .aft-primary { min-height:42px!important;padding:8px 14px!important; }

@media (max-width:900px) {
  html:not(.agn-tablet-rail):not(.agn-vertical-nav) body.amoon-file-tools-app .aft-page { padding-top:84px!important; }
  body.amoon-file-tools-app .aft-hero { padding:12px!important; }
  body.amoon-file-tools-app .aft-brand img { width:42px!important;height:42px!important; }
  body.amoon-file-tools-app .aft-brand h1 { font-size:24px!important; }
  body.amoon-file-tools-app .aft-hero>p { margin:7px 0 6px!important;font-size:10px!important; }
  body.amoon-file-tools-app .aft-privacy { padding:5px 8px!important;font-size:8px!important; }
  body.amoon-file-tools-app .aft-tabs { margin:7px 0!important; }
  body.amoon-file-tools-app .aft-tabs button { min-height:54px!important; }
  body.amoon-file-tools-app .aft-panel { padding:12px 10px!important; }
  body.amoon-file-tools-app .aft-panel-head h2 { font-size:24px!important; }
  body.amoon-file-tools-app .aft-panel-head p { font-size:10px!important; }
  body.amoon-file-tools-app .aft-step { font-size:29px!important; }
  body.amoon-file-tools-app .aft-drop { min-height:142px!important;margin-top:8px!important;padding:9px!important; }
  body.amoon-file-tools-app #aft-merge .aft-options.aft-grid-3 { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
