/* Shared dropdown appearance from the approved "Other versions" chooser.
 * Keep the original select/form/value/change behavior and native keyboard access. */
:root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]) {
  box-sizing: border-box;
  appearance: none;
  min-height: 44px;
  height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #68775a;
  border-radius: 4px;
  background-color: #111b10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2l4 4 4-4' fill='none' stroke='%23e4ebde' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  color: #e4ebde;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 20px !important;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
:root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]):focus-visible {
  outline: 2px solid #a4d74d;
  outline-offset: 2px;
}
:root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]):disabled {
  opacity: .6;
  cursor: not-allowed;
}
:root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]) option {
  background: #151f14;
  color: #edf2e9;
}
/* Supporting browsers use the same dark, bounded popup; others retain their
 * native popup with the matching closed control above. */
@supports (appearance: base-select) {
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]),
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size])::picker-icon {
    display: none;
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]):open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 6l4-4 4 4' fill='none' stroke='%23e4ebde' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size])::picker(select) {
    box-sizing: border-box;
    margin-block: 6px;
    padding: 0;
    max-height: 220px;
    border: 1px solid #596c4c;
    border-radius: 4px;
    background: #151f14;
    color: #edf2e9;
    font: 14px/20px Arial,sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #819d55 #172114;
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]) option {
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #34432b;
    font: inherit;
    cursor: pointer;
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]) option:is(:checked,:hover,:focus) {
    background: #2a3b21;
  }
  :root :is(#v2-order,.hicoria-server-admin,.hicoria-visual-p1) select:not([multiple]):not([size]) option:disabled {
    color: #a2afa0;
    cursor: not-allowed;
  }
}
/* Fields keep their readable width; the shared action footer centers in its
 * own FTP panel rather than the narrower field column. */
.hicoria-server-admin .v2-ftp-actions .v2-ftp-form { max-width: none; }
.hicoria-server-admin .v2-ftp-actions .v2-ftp-form > :is(div,label):not(.hicoria-single-action-footer) { max-width: 640px; }
.hicoria-server-admin .navi .item > .hicoria-renewal-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; object-fit: contain; filter: invert(1); opacity: .9; }
